Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7976 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.