S
SherryScrapDog
I have a Main table where I store Country, State, County and Locality codes.
I have another Codes table where I store the names for these sets of codes.
I originally tried to use the same codes in the Codes table and made the set
of 4 fields the primary key. But then I couldn't figure out how to relate
the 4 fields in the Main table with the 4 fields (primary key) in the Codes
table. So I went to plan b. I concatinated the codes together into one
field in the Codes table (I entered them this way). In my Main table, I
created a new field called 'Code' and related it to the Codes table. I used
a query to populate the new field with the concatinated 4 fields and this
worked like a charm (I'm dealing with converting an old database into Access,
so I have records to start with). Now, when they enter or update a record
(on a form), I would like this field to automatically update with the
concatinated fields. I have found questions similar and have tried various
things and nothing happens. My code field remains blank. Any help or
suggestions? I'm not very experienced with macros or VBA (which are some of
the things I've tried, along with just putting =Country&State ect. into the
control source), so specific instructions might be needed for me to
understand exactly what to do.
Thanks so much if you can help! Sherry
I have another Codes table where I store the names for these sets of codes.
I originally tried to use the same codes in the Codes table and made the set
of 4 fields the primary key. But then I couldn't figure out how to relate
the 4 fields in the Main table with the 4 fields (primary key) in the Codes
table. So I went to plan b. I concatinated the codes together into one
field in the Codes table (I entered them this way). In my Main table, I
created a new field called 'Code' and related it to the Codes table. I used
a query to populate the new field with the concatinated 4 fields and this
worked like a charm (I'm dealing with converting an old database into Access,
so I have records to start with). Now, when they enter or update a record
(on a form), I would like this field to automatically update with the
concatinated fields. I have found questions similar and have tried various
things and nothing happens. My code field remains blank. Any help or
suggestions? I'm not very experienced with macros or VBA (which are some of
the things I've tried, along with just putting =Country&State ect. into the
control source), so specific instructions might be needed for me to
understand exactly what to do.
Thanks so much if you can help! Sherry