F
Faraz A. Qureshi
I have a field in a table Consisting entries choice in a dropdown like:
Class A
....
Class C
....
Class AA
....
I want the Primary Key of the said table to be autogenerated as follows:
Pickup the last character(s) from the field "Class" i.e. A, C, AA & the
number of their relative records, i.e. if 100, 900, 8755 records exists,
respectively the key generated to be and updated as to:
A-0001 to A-0100
C-0001 to C-0480
AA-0001 to AA-8755
Any suitable formula/code for the said key field shall be highly obliged.
Class A
....
Class C
....
Class AA
....
I want the Primary Key of the said table to be autogenerated as follows:
Pickup the last character(s) from the field "Class" i.e. A, C, AA & the
number of their relative records, i.e. if 100, 900, 8755 records exists,
respectively the key generated to be and updated as to:
A-0001 to A-0100
C-0001 to C-0480
AA-0001 to AA-8755
Any suitable formula/code for the said key field shall be highly obliged.