CodeConnect.Net Beta


   Explore    Entry   Register  Login  
windowsxp-general
access
windows-vista-mail
windows-vista-general
windowsupdate
windowsmedia-player
access-forms
windows-live-mail-desktop
windowsxp-help_and_support
access-queries
access-modulesdaovba
access-formscoding
windows-server-sbs
windows-server-general
access-reports
windows-vista-music_pictures_video
windowsce-platbuilder
windows-live-messenger
windows-terminal_services
windows-powershell
windows-server-active_directory
access-gettingstarted
windows-mediacenter
windowsxp-hardware
windowsxp-network_web
windows-64bit-general
windows-live-sync
windows-vista-hardware_devices
windows-inetexplorer-ie6_outlookexpress
windows-group_policy
windows-server-networking
windows-vista-installation_setup
windows-vista-networking_sharing
windowsxp-basics
access-tablesdbdesign
windowsxp-perform_maintain
windows-vista-performance_maintenance
windows-networking-wireless
windows-vista-file_management
windows-inetexplorer-ie6-browser
windows-server-dns
windows-server-update_services
windows-vista-security
windows-vista-administration_accounts_passwords
windows-vista-games
windows-file_system
access-activexcontrol
windows-live-foldershare
windows-live-photogallery
access-developers-toolkitode
access-conversion




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > Microsoft News > microsoft.public.access.gettingstarted Tags:
Item Type: Date Entered: 10/30/2009 2:06:01 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 98 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
=?Utf-8?B?c251Y
NewsGroup User
New database10/30/2009 2:06:01 PM
Reply

0

I am completely new to Access and databases in general. I am creating a new
table, the first field of which needs to be an AutoNumber, but it needs to
start at 10001; eg first AutoNumber generated 10001, second 10002, third
10003 etc. Can someone help?
=?Utf-8?B?SmVyc
NewsGroup User
RE: New database10/30/2009 3:51:01 PM
Reply

0

Autonumbers won't do that. An autonumber field picks a unique number, if the
field is also the primary key field. Autonumber need not pick a sequential
number.

What you will probably need to do is to use the DMax + 1 function to look at
the existing highest number in the field and add one to it. There are two
problems with this:

(1) It only works in forms. If someone inputs directly into the table, it
will not work.

(2) In a multi-user environment, it's possible for two or more people to
pick the same number if they are adding a new record at the same time.

Unfortunately Access doesn't support sequences at table level like other
major league databases such as Oracle or SQL Server.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"snub" wrote:

> I am completely new to Access and databases in general. I am creating a new
> table, the first field of which needs to be an AutoNumber, but it needs to
> start at 10001; eg first AutoNumber generated 10001, second 10002, third
> 10003 etc. Can someone help?
"J_Goddard via
NewsGroup User
Re: New database10/30/2009 5:02:42 PM
Reply

0

Hi -

Just to add to what Jerry said.

From what you are asking, it appears that the field you want to to be an
autonumber is to have some meaning, i.e. it refers to something real , e.g. a
part number, file number, etc. It is good practice (to say the least) to
never use autonumber fields for real data. They are not necessarily
sequential and can contain gaps.

As Jerry said, use DMax or your own function to determine that the next
number should be.

John

snub wrote:
>I am completely new to Access and databases in general. I am creating a new
>table, the first field of which needs to be an AutoNumber, but it needs to
>start at 10001; eg first AutoNumber generated 10001, second 10002, third
>10003 etc. Can someone help?

--
John Goddard
Ottawa, ON Canada
jrgoddard at cyberus dot ca

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-gettingstarted/200910/1

"Jeff Boyce" <n
NewsGroup User
Re: New database11/2/2009 6:06:38 PM
Reply

0

You've already received responses pointing out that Access Autonumbers are
not intended for that use.

If you'll describe what you want to accomplish (rather than, as you've done,
"how" you want to do something), folks here may be able to offer alternate
approaches. After all, if you're 'new', folks here may have already solved
the problem you're facing ... if we only knew what it was!<g>

Good luck!

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"snub" <snub@discussions.microsoft.com> wrote in message
news:1D1076D5-DE14-4D78-A082-8A5C57A3B505@microsoft.com...
>I am completely new to Access and databases in general. I am creating a new
> table, the first field of which needs to be an AutoNumber, but it needs to
> start at 10001; eg first AutoNumber generated 10001, second 10002, third
> 10003 etc. Can someone help?


=?Utf-8?B?c251Y
NewsGroup User
Re: New database11/3/2009 3:36:01 PM
Reply

0

Hi, thanks for the replies.
I am trying to create a field, first field, in a table that starts at 10001
and increments itself by one each time data is added, this field will be
hidden to the users of the database once it is in use; that's why I assumed
it would be an auto number.


"Jeff Boyce" wrote:

> You've already received responses pointing out that Access Autonumbers are
> not intended for that use.
>
> If you'll describe what you want to accomplish (rather than, as you've done,
> "how" you want to do something), folks here may be able to offer alternate
> approaches. After all, if you're 'new', folks here may have already solved
> the problem you're facing ... if we only knew what it was!<g>
>
> Good luck!
>
> Regards
>
> Jeff Boyce
> Microsoft Access MVP
>
> --
> Disclaimer: This author may have received products and services mentioned
> in this post. Mention and/or description of a product or service herein
> does not constitute endorsement thereof.
>
> Any code or psuedocode included in this post is offered "as is", with no
> guarantee as to suitability.
>
> You can thank the FTC of the USA for making this disclaimer
> possible/necessary.
>
> "snub" <snub@discussions.microsoft.com> wrote in message
> news:1D1076D5-DE14-4D78-A082-8A5C57A3B505@microsoft.com...
> >I am completely new to Access and databases in general. I am creating a new
> > table, the first field of which needs to be an AutoNumber, but it needs to
> > start at 10001; eg first AutoNumber generated 10001, second 10002, third
> > 10003 etc. Can someone help?
>
>
> .
>
"Jeff Boyce" <n
NewsGroup User
Re: New database11/3/2009 4:50:39 PM
Reply

0

You are still describing "how" ... a hidden field that starts at xxxx and
increments by one for each record.

Why? What will having that allow you to do?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"snub" <snub@discussions.microsoft.com> wrote in message
news:20A10512-5889-47F0-8A83-464F377813E9@microsoft.com...
> Hi, thanks for the replies.
> I am trying to create a field, first field, in a table that starts at
> 10001
> and increments itself by one each time data is added, this field will be
> hidden to the users of the database once it is in use; that's why I
> assumed
> it would be an auto number.
>
>
> "Jeff Boyce" wrote:
>
>> You've already received responses pointing out that Access Autonumbers
>> are
>> not intended for that use.
>>
>> If you'll describe what you want to accomplish (rather than, as you've
>> done,
>> "how" you want to do something), folks here may be able to offer
>> alternate
>> approaches. After all, if you're 'new', folks here may have already
>> solved
>> the problem you're facing ... if we only knew what it was!<g>
>>
>> Good luck!
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Access MVP
>>
>> --
>> Disclaimer: This author may have received products and services mentioned
>> in this post. Mention and/or description of a product or service herein
>> does not constitute endorsement thereof.
>>
>> Any code or psuedocode included in this post is offered "as is", with no
>> guarantee as to suitability.
>>
>> You can thank the FTC of the USA for making this disclaimer
>> possible/necessary.
>>
>> "snub" <snub@discussions.microsoft.com> wrote in message
>> news:1D1076D5-DE14-4D78-A082-8A5C57A3B505@microsoft.com...
>> >I am completely new to Access and databases in general. I am creating a
>> >new
>> > table, the first field of which needs to be an AutoNumber, but it needs
>> > to
>> > start at 10001; eg first AutoNumber generated 10001, second 10002,
>> > third
>> > 10003 etc. Can someone help?
>>
>>
>> .
>>


6 Items, 1 Pages 1 |< << Go >> >|







Similar:

just beginning !

fit to screen

if statement

unable to enter data in access 2007 database on a network

design suggestions

tables

which is better: one or several requeries?

oops! didn't check "save password" when linking tables. what now?

problem loading and sizing images

export query result from access 2003 to specific cells in excel 2007

database design protection when sharing a database in access 2007

if then code for empty combo box column

not a new user

starting database

linking 3 tables with common data

change a text or combo box under prog control

calculate total in a form

combo box on form

can i run code automatically between each field being selected ?

generating a new record

unable to enter data in access 2007 database on network

simulate holding the enter key down

new database

appearance of responses in a list box

change delimiter in access functions

access forms as a window

updating information

how do you get rid of hp recovery icon comming up

conditional formatting

trying to average a parameter for each month of each year

use a combo box to find an employee

which field is selected ?

create a search box on a form

how would i remove all data from northwinds template.

type mismatch

the best way to search for a specific record id?

can i filter a subform combo from a textbox value on form

another query question

starting database

create database and form for patient records

help with count function

tables question

pass infomration from a form to a report...

moving label only and not box associated with it

how to add calculated field to forms

how do i apply a footer in access

iif function

importing large numbers as text

how to incress my system speed & internet accesing speed

calculation between records

   
  Privacy | Contact Us
All Times Are GMT