smoothdra Posted June 21, 2000 Posted June 21, 2000 I'm working on a script that will assign a four digit serial number to an account. The format is A001-A999, then B001-B999, etc. I don't know how to get the letter to change over. Should I use a prefix? If so, how?
filecrazy Posted June 21, 2000 Posted June 21, 2000 I've been able to do this by creating 3 fields: Field 1 is a text field that auto-enters a serial number, increment by 1. Field 2 is a Calculation (Text result)that assigns a letter based on value of Field 1 - e.g. If(Field 1 >= 0 and Field 1 < 1000, "A", If(Field 1 >= 1000 and Field 1 < 2000, "B"....and so on. Field 3 is another Calculation with Text result: = Field 2 & Right(Field 1,3) Kind of a rough way to get there, but it's the only thing I can think of. Good luck.
Recommended Posts
This topic is 8926 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now