T
The Colonel
I created a database to log correspondence topics at work. Each entry/issue
is assigned a unique log number. The number is a combination of things.
Example: ADCN07-1
The text letters identify the particular location/office, the "07" would be
the current year, and the last number should be a sequential number,
automatically determined as new entries are made.
I previously used an autonumber field for this, and simply adjusted the form
formatting to provide the proper display. However, several problems exist.
1. Getting an error when attempting to use 2-digit year DatePart (Access
2003).
2. Need autonumber to reset to "1" each year (January 1).
3. Need log # to store as displayed for search purposes. Thus the year needs
to store and not fluctuate.
For 2007, the first entry would be ADCN07-1. Come 2008, the first entry
would be ADCN08-1. In this way past entries can still be identified.
is assigned a unique log number. The number is a combination of things.
Example: ADCN07-1
The text letters identify the particular location/office, the "07" would be
the current year, and the last number should be a sequential number,
automatically determined as new entries are made.
I previously used an autonumber field for this, and simply adjusted the form
formatting to provide the proper display. However, several problems exist.
1. Getting an error when attempting to use 2-digit year DatePart (Access
2003).
2. Need autonumber to reset to "1" each year (January 1).
3. Need log # to store as displayed for search purposes. Thus the year needs
to store and not fluctuate.
For 2007, the first entry would be ADCN07-1. Come 2008, the first entry
would be ADCN08-1. In this way past entries can still be identified.