K
karbar
Good Morning!
Thought this would be an easy one to figure out, but apparently not today
I have a country table (tblcountry), and then three tables with cities
(tblUS, tblUK, tblFrance) - my plan was to use cascading combo boxes...the
two I am working with are cboCountry and cboCity...I want cboCity to update
with only the table from the selected Country (a US city if US is chosen)
On my form, I have the following code in the AfterUpdate Event on my
cboCountry combobox:
Select Case cboCountry.Value
Case "France"
cboCity.RowSource = "tblFrance"
Case "United Kingdom"
cboCity.RowSource = "tblUnitedKingdom"
Case "United States"
cboCity.RowSource = "tblUnitedStates"
End Select
It seemed simple enough, but it doesn't work...I added a requery thinking
that was the problem. I suspect I am missing something simple here. Any
help or suggestions would be immensely appreciatted.....
Thought this would be an easy one to figure out, but apparently not today
I have a country table (tblcountry), and then three tables with cities
(tblUS, tblUK, tblFrance) - my plan was to use cascading combo boxes...the
two I am working with are cboCountry and cboCity...I want cboCity to update
with only the table from the selected Country (a US city if US is chosen)
On my form, I have the following code in the AfterUpdate Event on my
cboCountry combobox:
Select Case cboCountry.Value
Case "France"
cboCity.RowSource = "tblFrance"
Case "United Kingdom"
cboCity.RowSource = "tblUnitedKingdom"
Case "United States"
cboCity.RowSource = "tblUnitedStates"
End Select
It seemed simple enough, but it doesn't work...I added a requery thinking
that was the problem. I suspect I am missing something simple here. Any
help or suggestions would be immensely appreciatted.....