G
Guest
I’d like to get two combo boxes to work jointly. Here’s the situation:
The table has 2 fields: Airport Code (text) and Airport Location (text).
Airport code is the primary key, being a unique 3-letter “code†assigned by
the FFA. Airport location is as it says, the name of the location/city of
the airport.
In my application, the user needs to pick an airport, but I want to give
him/her the option of either (1) entering the airport code, or (2) entering
the airport location, depending upon which they are most familiar. Using a
combo box for both allows them to take advantage of the auto-complete feature.
Am I correct to use the AfterUpdate routine to set the “other†field to the
proper one? So, if the user chooses to enter the airport code (e.g., “ANCâ€),
when he/she leaves that field the location field will be automatically filled
in properly (e.g., set to “Anchorageâ€).. And vice versa.
Or will I end up chasing my tail? Is there a better option I’m not seeing?
Thanks.
Jerry
The table has 2 fields: Airport Code (text) and Airport Location (text).
Airport code is the primary key, being a unique 3-letter “code†assigned by
the FFA. Airport location is as it says, the name of the location/city of
the airport.
In my application, the user needs to pick an airport, but I want to give
him/her the option of either (1) entering the airport code, or (2) entering
the airport location, depending upon which they are most familiar. Using a
combo box for both allows them to take advantage of the auto-complete feature.
Am I correct to use the AfterUpdate routine to set the “other†field to the
proper one? So, if the user chooses to enter the airport code (e.g., “ANCâ€),
when he/she leaves that field the location field will be automatically filled
in properly (e.g., set to “Anchorageâ€).. And vice versa.
Or will I end up chasing my tail? Is there a better option I’m not seeing?
Thanks.
Jerry