KWHAT,
What exactly does this mean first two characters as a state?Well there are limitations, I need to set the first two characters as a state and the last two need to be characters as well, so there a multiple groups that need to be assigned a unique ID within the same state therefore I need the last two letters to change incrementally, there can’t be any numerical values in the string .
Also, from experience, do not over complicate code structures. Use meaningful field names with single defined purpose. Each field has one meaning and holds 1 piece of info. Don't get too cute where every character in every position of some multi-character code means something. For example,
AA11RCF7 --I've seen things like this
AA --current model
11-- ProductionMonth
R -- Red
C---Child
F --Female
7 -- Size 7
This sort of thing is pure foolishness. You will tie yourself in knots before you know.
Anyway, good luck with your project