I don't think there is a way to do this if you are working directly in
the table. If you are entering or updating data in a form, you
certainly can have code that does this. (I assume you would want the
correct full name for every state and its 2-letter code)
However, using a second field to record essentially the same data
violates one of the principles of good management of relational
databases: in plain English, you should not have a field to hold data
that is directly determined by the data that is already recorded in
another field. Entering it twice leaves you open to multiple problems,
all of which a relational database is designed to avoid or eliminate in
the first place.
So, you're much better off with one table of states abbreviations and
the matching names. Link it to the "State Abbrev" field in your current
table, and use it via queries to get the full name of the state any time
you really need it. (set up relationships by having the focus on the
Database Window, then click Tools - Relationships.)
jerkyboy wrote:
Quote:
I have the following fields in a database:
1. State Abbrev
2. State Long Form
I would like to know if it is possible to Type "IL" in the State Abbrev
field and
have "Illinois" auto-populate in the State Long Form field.
Any help would be greatly appreciated.
Thanks |