G
Guest
I would like to generate a number automatically, but not use the autonumber
function. I want to keep it in the format I need for the database.
Basically, everytime I do a new record in a form, I want something like this
yy-mm-### where yy is 2 digit year and mm is 2 digit month and # are numbers.
the year and month is pretty easy, but i want to start at 000 and everytime
i do a new record to add one to that 001,002 so on. And then when a new
month comes around to reset to 000. i was trying to use the default value in
the control box, having a little problems there. also noticed messing around
that when you add 1 to 000, the result is 1 not 001, anyway to fix this as
well. any help would be greatly appreciated.
function. I want to keep it in the format I need for the database.
Basically, everytime I do a new record in a form, I want something like this
yy-mm-### where yy is 2 digit year and mm is 2 digit month and # are numbers.
the year and month is pretty easy, but i want to start at 000 and everytime
i do a new record to add one to that 001,002 so on. And then when a new
month comes around to reset to 000. i was trying to use the default value in
the control box, having a little problems there. also noticed messing around
that when you add 1 to 000, the result is 1 not 001, anyway to fix this as
well. any help would be greatly appreciated.