Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Start From "Auto Number"

0 views
Skip to first unread message

XNoDE

unread,
Aug 13, 2002, 12:33:21 PM8/13/02
to
Hi all,

Can anyone tell me of how to set up an auto number field
type to Start From 10,000. I am building a db to track
customers, products and purchases and I would like the
New Customers to receive an account number which is
automatically generated but doesn't start at 1, as an
acct no. 1 sounds pretty lame. Can anyone help me.

TIA,

Joan Wild

unread,
Aug 13, 2002, 6:40:57 PM8/13/02
to
You can append a record into your table with 9999 for the value to go into
the Autonumber field. Then delete this record. Next one will be 10000.

However, you do realize that autonumbers will have gaps, and can be
negative. Customer -43256 might sound lame too.

Joan Wild
Access MVP

"XNoDE" <amt...@kinkos.com> wrote in message
news:1ce401c242e7$22fc16a0$b1e62ecf@tkmsftngxa04...

Larry Linson

unread,
Aug 13, 2002, 11:40:04 PM8/13/02
to
"XNoDE" wrote

> Can anyone tell me of how
> to set up an auto number field
> type to Start From 10,000. I
> am building a db to track

> customers, products and pur-


> chases and I would like the
> New Customers to receive an
> account number which is
> automatically generated but
> doesn't start at 1, as an acct no. 1
> sounds pretty lame. Can anyone help me.

AutoNumbers work very nicely for their intended purpose, to
be surrogate keys, and to be used internally to join related
tables. They were not intended to be displayed to users
(though there is nothing that prevents them being
displayed), and they aren't always monotonically increasing
as they are most of the time. Old-time
green-eyeshade-and-sleeve-garter bookeepers and accountants
tend to go ballistic when they see _gaps_ in what they
expect to be a complete set of numbers, and you certainly
may get gaps with AutoNumber. The simplest case is when
someone starts to enter a new record and then cancels -- the
AutoNumber that was assigned is not "returned to the
system"; it is just never used. Other circumstances can
cause larger gaps.

If you want to assign customer numbers, it would be better
to use your own function, and a separate file or use the
DMax function on the Customer file. Many firms "customer
numbers" have alphabetic characters as well, and AutoNumber
"doesn't do alphabetic".


Charlie Smith

unread,
Aug 14, 2002, 12:10:50 AM8/14/02
to
Try This: Change the Field Properties to Number (Not
AutoNumber) (Temporarily) then add 10000 into that field
of a record (must have only this one record in the db).
Then re-open the table and set the Field Properies back
to AutoNumber.
>.
>

Michael

unread,
Aug 14, 2002, 8:55:13 PM8/14/02
to
Hi Charlie,

That would be great but once you enter data into the field
you cannot change the data type to AutoNumber. If you delete the record and
create an AutoNumber it starts at one again. The append query is the best
option.


I hope this helps! If you have additional questions on this topic, please
reply to this posting.

Regards,
Michael Noto
Microsoft Support

This posting is provided 'AS IS' with no warranties, and confers no rights.

Tony Toews

unread,
Aug 20, 2002, 8:05:05 PM8/20/02
to
"Joan Wild" <jw...@nospamtyenet.com> wrote:

>However, you do realize that autonumbers ... can be


>negative. Customer -43256 might sound lame too.

Only if random is specified in the New Values property for the
AutoNumber field.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm

Joan Wild

unread,
Aug 21, 2002, 9:21:09 AM8/21/02
to
It is possible to get negative numbers if increment is specified. Granted
it will take a while, however a high number could be stuffed into the field
via an Append query. Also I have experienced sizeable gaps with an
autonumber, and if it's large enough and occurs enough, you will be in the
negative numbers even with increment.

Joan Wild
Access MVP

"Tony Toews" <tto...@telusplanet.net> wrote in message
news:o7m5muo8bm49cni5p...@4ax.com...

Tony Toews

unread,
Aug 25, 2002, 5:01:00 PM8/25/02
to
"Joan Wild" <jw...@nospamtyenet.com> wrote:

>It is possible to get negative numbers if increment is specified. Granted
>it will take a while, however a high number could be stuffed into the field
>via an Append query.

Ah, yes, it took me a while to figure out that problem once a while
back. I then changed the base query to not include duplicate records
so that problem didn't happen any more.

>Also I have experienced sizeable gaps with an
>autonumber, and if it's large enough and occurs enough, you will be in the
>negative numbers even with increment.

Good point although my autonumbers even in my clients largest table of
200K records are still roughly around the same number. Not too many
deletes in there.

0 new messages