AutoNumber



techstore
LQ Net Home
















   Access Links







printer_inage      Printer Friendly Page

Contents:
Gaps in Auto-Numbers
Resequencing Auto-Numbers
Special Formatting for Auto-Numbers

Gaps in Auto-Numbers
If you define a field as type Auto Number, Access will assign a unique, sequential number to a record when it is created. These numbers should not be relied on for anything other than a unique identifier.

If record is deleted, that number will be missing. Auto numbering will not go back and assign missing numbers. Also, if you start to create a new record and then cancel, the auto-number may be used up. It will be missing from the set of numbers.

Gaps in auto-numbers are very common. There isn't any Access feature that allows you to fill-in these missing numbers.

Resequencing Auto-Numbers
However, it is possible to restart auto-numbers from 1 again:

Special Formatting for Auto-Numbers
What if you want auto-numbers that start with a prefix, such as IT-100 or PT-250?

In the database design, use the format property of the auto number field.

For the examples mentioned here you would enter "IT-"# or "PT-"# in the format property field.


   Today's News





Office Depot, Inc

Tech Depot - An Office Depot Co.



Overstock.com, Inc.

























Copyright © 2006-2008, LQ Systems,Inc. All rights reserved.