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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special autonumber for table in office XP

Status
Not open for further replies.

fernandezduk

IS-IT--Management
Jan 7, 2003
16
US
Hi,
firstly thanks.

I have a problem. I want an field ID to be a special number e.g./

2003001 (year and then three digits.)
This has to be an auto number and must increment every time a new record is started on this table.

Is there a way to do this I am not fussed if it is not an Auto number and not the primary Key either. Any way this can be done is appreciated.

I tried to setup the default value to be =year(date())
but this only gives me the number not the increment.

Help is appreciated. Thanks.

DAVE
 
faq700-184




MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
WOW Thanks man. Just what I needed. It will take some time to look into this as there is loads of code.

WOW again thanks

DAVE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top