Hi,
I am working on a db, where, in a particular table, an auto incrementing customised number is created in addition to autonumber (as it always starts from 1).
I would like to have my number starting with an Alphabet followed by a set of 4digit numbers that would increment in each new record.
Once it reaches the max of four digits ie. 9999, it increments the Alphabet and starts numeration from the beginning.
ex.
A0001 > A0002......>A9999 >B0001
Can this be achieved in a table?
if so, where the code should be written and what should be the format?
I tried working with DMax function explained in another thread in this section and tried placing it in "Default Value" section of the Field properties for the particular field.
ex. Field id [Issue data.is_issue no:]
Field properties > Default value: =DMax ("is_issue no:","Issue data") +1
When tried to save, it generated "Unknown function DMax in validation expression or default value on Issue data.is_issue no:"
I know I have made a mess of the available functions. I would appreciate if anyone could render their help in this regard.
Thanks in advance.
Regards
Daavis
I am working on a db, where, in a particular table, an auto incrementing customised number is created in addition to autonumber (as it always starts from 1).
I would like to have my number starting with an Alphabet followed by a set of 4digit numbers that would increment in each new record.
Once it reaches the max of four digits ie. 9999, it increments the Alphabet and starts numeration from the beginning.
ex.
A0001 > A0002......>A9999 >B0001
Can this be achieved in a table?
if so, where the code should be written and what should be the format?
I tried working with DMax function explained in another thread in this section and tried placing it in "Default Value" section of the Field properties for the particular field.
ex. Field id [Issue data.is_issue no:]
Field properties > Default value: =DMax ("is_issue no:","Issue data") +1
When tried to save, it generated "Unknown function DMax in validation expression or default value on Issue data.is_issue no:"
I know I have made a mess of the available functions. I would appreciate if anyone could render their help in this regard.
Thanks in advance.
Regards
Daavis