Hi folks,
Can anyone help me work out how to generate some specific reference codes.
My company uses Purchase Order numbers in the following format:
08.09.011
mm.yy.###
I have a basic text field in my DB which I'd like to populate automagically when the user creates a new record.
Is there some useful code that could be used to:
Get the month for mm
Get the year for yy
Get the first available number based on three digits; resetting to 001 when mm changes.
Any help much appreciated!
C
Can anyone help me work out how to generate some specific reference codes.
My company uses Purchase Order numbers in the following format:
08.09.011
mm.yy.###
I have a basic text field in my DB which I'd like to populate automagically when the user creates a new record.
Is there some useful code that could be used to:
Get the month for mm
Get the year for yy
Get the first available number based on three digits; resetting to 001 when mm changes.
Any help much appreciated!
C