G
Guest
How do I make a multi-part autonumber or similar incrementing unique value?
Example:
F05-001
F05-002
The "F" is the type of case it is, which comes from another value in the
same record
The "05" is the year it was opened, which comes from another value in the
same record
The "-001" is the value that increments per record
We have been trying for a week now to think of something best we could come
up with was making seperate tables for each part of the number that would do
a sort of 'if' statement:
IF (casetype=M) PUT M
IF (casedateyear=2005) PUT 05
THEN increment (ending+1=ending)
I would appreciate any bit of advice anyone could give me cause I am stumped.
Example:
F05-001
F05-002
The "F" is the type of case it is, which comes from another value in the
same record
The "05" is the year it was opened, which comes from another value in the
same record
The "-001" is the value that increments per record
We have been trying for a week now to think of something best we could come
up with was making seperate tables for each part of the number that would do
a sort of 'if' statement:
IF (casetype=M) PUT M
IF (casedateyear=2005) PUT 05
THEN increment (ending+1=ending)
I would appreciate any bit of advice anyone could give me cause I am stumped.