Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to autonumber in Access

Status
Not open for further replies.

jmk2z

Programmer
Oct 29, 2002
18
US
I'm trying to get the primary key in an Access table to autonumber in the following manner:

D030001
D030002
D030003
D030004
etc.

Where 03 represents the year 2003 (next year it would be 04). Is there a way to get it to do this?

Note: the year part is less important than the numbering on the right side.
 
In the Format of the values for that column type "D03"00000 with the quote marks and as many zeros as you want numbers. The text in the quotes is entered written and the zeros act as number place holders that are incremented automatically by the autonumber.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top