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!

Custom Autonumber 1

Status
Not open for further replies.

LakotaMan

Instructor
Aug 21, 2001
240
US
I'm trying to figure out a way to create an autonumber field that combines the current date with sequential numbers, and then starts the sequence again for the next entry date, i.e.:

07010401
07010402
07010403
07020401
07020402
07020403
07020404
. . .etc.

I'd like to be able to do this on the table level and then use this as the primary key. Further, I'd like it to be the default value, but not the only possible value.

Does this sound possible?

Thanks in advance,
Tru
 
faq700-184,

with some of your own (custom) modifications




MichaelRed
mlred@verizon.net

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top