[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines


Home
Whats New!
Need a database?
Tips via email
Learn VBA
Questions Answered
Access Tips Index
What is MS Access


Adding Prefix to AutoNumber










 
 

This tip will explain about adding prefix to autonumber. An AutoNumber field is great as it automatically increases for you. There are times though when you need a prefix before it. For this example our prefix is ABC and we want the number to display as:

ABC001

ABC002

Etc.

You can easily set this up.

When creating your table and defining the field type as an AutoNumber field, click on the ‘General’ tab in the bottom half of the table design window. One of the properties listed here is ‘Format’.

In here, type the following:

“ABC”000

Now the prefix and the corresponding zeros will be included with each of your AutoNumbers.

 

Do you like this tip? Subscribe to my Newsletter to receive tips via email. Click Here to subscribe.

www.simply-access.com (c) 2002 - 2009