Cascading Combo boxes using CASE command
- From: Agnelo Fernandes <AgneloFernandes@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Oct 2008 08:35:02 -0700
I tried setting up a cascading combo box between countries and cities i.e
based on the country u select , you can view the appropriate cities in the
other combo box.
I tried using CASE command in 'after update' of country combo box:
Private Sub cboCountry_AfterUpdate()
On Error Resume Next
Select Case cboCountry.Value
Case "France"
cboCity.RowSource = "tblFrance"
Case "United Kingdom"
cboCity.RowSource = "tblUnitedKingdom"
Case "United States"
cboCity.RowSource = "tblUnitedStates"
End Select
End Sub
This works fine but now I need 'cities' combo box to be in SubForm. So based
on the option I select in Countries [on MainForm] I should get the
appropriate cities [on SubForm] by using CASE function...Any help
.
- Follow-Ups:
- Re: Cascading Combo boxes using CASE command
- From: Jeanette Cunningham
- Re: Cascading Combo boxes using CASE command
- Prev by Date: RE: Access 2007 and ACCDE
- Next by Date: Re: Ad a calendar so that user can choose the date rather than type it
- Previous by thread: Passing Data from One Form to Another, Variation on a Theme
- Next by thread: Re: Cascading Combo boxes using CASE command
- Index(es):
Relevant Pages
|
Loading