ddreese Posted January 22, 2003 Posted January 22, 2003 I have a psuedo-stupid question. I'm using value lists for certain fields to reduce data entry errors. For instance, I have a value list containing counties, like "Lycoming" and "Clinton". My question is, when a user selects one of those choices, could I have it actually stored as a number? We have to do reports for the states that use codes for the counties, like clinton is 18, lycoming is 41. Thanks!
BobWeaver Posted January 22, 2003 Posted January 22, 2003 The easiest way to do this is to create a value list with both the number and name in it, like: 18 Clinton 41 Lycoming etc. Then make calculated field "CountyNumber" with the formula LeftWords(CountyNameNo,1) where CountyNameNo is the field that was filled from the valuelist. You can also separate out the County Name with this formula: MiddleWords(CountyNameNo,2,100)
Recommended Posts
This topic is 7976 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