F
firecop1
Hi All,
Using Access 2007
I need a field I will call "CASE_NO" that must be autogenerated with each
new record. The number must be consecutive with the first record being
07-001 the next 07-002 etc.... As I am already using the AutoNumber field in
my table, I cannot use another so how would this be done.
Now here is where it gets sticky (although to you guys its probably a no
brainer). At midnight on January 1 of every year the first two digits must
change to the new year (08 for 2008, 09 for 2009 etc..) and the next 3
digits will have to start back at 001. I am only using 3 digits as I dont
feel that I will have over 1000 records in a given year but if that were to
change, if I could incorporate that into the equation it would be better.
As always, I cant thank you all for the help.
Andrew J. Brofman
Chief Fire Marshal
Lake Grove, NY
Using Access 2007
I need a field I will call "CASE_NO" that must be autogenerated with each
new record. The number must be consecutive with the first record being
07-001 the next 07-002 etc.... As I am already using the AutoNumber field in
my table, I cannot use another so how would this be done.
Now here is where it gets sticky (although to you guys its probably a no
brainer). At midnight on January 1 of every year the first two digits must
change to the new year (08 for 2008, 09 for 2009 etc..) and the next 3
digits will have to start back at 001. I am only using 3 digits as I dont
feel that I will have over 1000 records in a given year but if that were to
change, if I could incorporate that into the equation it would be better.
As always, I cant thank you all for the help.
Andrew J. Brofman
Chief Fire Marshal
Lake Grove, NY