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

Generate new lot number

Status
Not open for further replies.

markcharleston

Technical User
Sep 16, 2005
3
US
I need to create a database that will generate a new lot number when a button is pressed. Our lot number format is:

03U01 where 03 represents the current month, U represents the year (2007=U, 2008=V, 2009=W, etc.)and the final two characters are a sequential number, starting at 01 and going through 99. I can generate the month and year using the Date() function and Select Case. I'm not sure how to tie them together with the next sequential number for that prefix. Any suggestions would be greatly appreciated.
 
Hiya, markcharleston,

A question... will your DB be multi-user? Or stand-alone? It makes a difference with respect to generating a unique identifier such as your lot number.

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top