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

YYYMMM-AutoNumber

Status
Not open for further replies.

EasyOnly

Technical User
Oct 11, 2008
55
US
Hi All,

How can I cousom my auto number to include year-month-autonumber

thanks'
 
Autonumber is a reference and should be treaded as such. If you require an record id which includes the date I suggest creating a separate field for it.

Ian Mayor (UK)
Program Error
9 times out of 10 I know what I'm talking about. This must be my tenth reply.
 
I am ceating invoice number and I want it to generate automatically: 200902-388383 and so on.
 
As I mentioned,do not use the auto number soley for this.

To make the invoice number for you database I would use two fields, a date field and a incremental field (or the auto number field) and combine them when you wanted to display it.

This way you have a reference to the date when the invoice was created and can later search/filter by date using field.

Ian Mayor (UK)
Program Error
9 times out of 10 I know what I'm talking about. This must be my tenth reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top