Good Day All.
I am fairly new to database design and have a question about a combobox.
I have 2 tables, on is the "main" table and the other is a table of Cities (names of cities).
I built a Form based on the "main" table and have included a combobox on the form to read from the City table and add the value to the "Main" table.
I want to be able to have the users add a city name (already done by setting the "limit to list" property to No) but I want to program to add the new city back to the City table.
So, finally, My question is: How can I have a ComboBox on a form send a value to the "Main" table but also, if there is not already a matching City Name in the City table, add that value back to the City table.
Is there a built in function that can do this? Is it a matter of setting up a relationship? Do I build an SQL expression to handle it? Am I looking at VBA to accomlish this?
I'm just so full of questions this morning...
********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!
I am fairly new to database design and have a question about a combobox.
I have 2 tables, on is the "main" table and the other is a table of Cities (names of cities).
I built a Form based on the "main" table and have included a combobox on the form to read from the City table and add the value to the "Main" table.
I want to be able to have the users add a city name (already done by setting the "limit to list" property to No) but I want to program to add the new city back to the City table.
So, finally, My question is: How can I have a ComboBox on a form send a value to the "Main" table but also, if there is not already a matching City Name in the City table, add that value back to the City table.
Is there a built in function that can do this? Is it a matter of setting up a relationship? Do I build an SQL expression to handle it? Am I looking at VBA to accomlish this?
I'm just so full of questions this morning...
********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!