S
st8employee
Until 2008, on my data entry form, I have had to automatically generate a
4-digit number that resets itself to "0001" at the beginning of each year. I
use the following to generate that number:
=DMax("[MaxOfWorkOrd]","Establish Order Number/Year
Query","[MaxOfYear]=[testyear]")+1
FYI NOTES:
[WorkOrd] = field in which autonumber is generated
[testyear] = yyyy of the current date
[MaxOfYear] = [testyear]
format of [WorkOrd] is set to "0000"
This was a hand-me-down formula that was already on the form when I got it
from my predecessor like six years ago, and since it wasn't "broke", I never
tried to "fix" it...so what you see above is pretty much all I know about how
this calculation works.
Now, my predicament:
Beginnig with 1/1/2008, my supervisor wants reset the number to "1000" at
the beginnig of each year instead of "0001". How do I modify this formula to
give me "1000" as the first autonumber?
P.S.: The data entry user is holding all hardcopies to be keyed, until AFTER
this adjustment is applied...!
4-digit number that resets itself to "0001" at the beginning of each year. I
use the following to generate that number:
=DMax("[MaxOfWorkOrd]","Establish Order Number/Year
Query","[MaxOfYear]=[testyear]")+1
FYI NOTES:
[WorkOrd] = field in which autonumber is generated
[testyear] = yyyy of the current date
[MaxOfYear] = [testyear]
format of [WorkOrd] is set to "0000"
This was a hand-me-down formula that was already on the form when I got it
from my predecessor like six years ago, and since it wasn't "broke", I never
tried to "fix" it...so what you see above is pretty much all I know about how
this calculation works.
Now, my predicament:
Beginnig with 1/1/2008, my supervisor wants reset the number to "1000" at
the beginnig of each year instead of "0001". How do I modify this formula to
give me "1000" as the first autonumber?
P.S.: The data entry user is holding all hardcopies to be keyed, until AFTER
this adjustment is applied...!