3 Cascading Combo Boxes

qdata

New member
Local time
Tomorrow, 05:50
Joined
Mar 18, 2012
Messages
8
Hi guys any idea how to cascade 3 combo boxes. I know how to do two but just cant get three to work. What I'd like to achieve is first combo box=country, second combo box=city, third combo box=Hotel.
Thank you
 
This is how I something like this for Region to Country to be flexible these are all functions obviously you have another tier.
Code:
Function LookupCountryRegion()
    With Screen.ActiveControl
        .RowSource = "SELECT [Countries Regions].[Country Region], [Countries Regions].[Country Region Desc], [Countries Regions].[Country Region Sort] FROM [Countries Regions] ORDER BY [Countries Regions].[Country Region Sort];"
        Call ListDisplay
    End With
End Function
Code:
Function LookupCountry()
Dim MyControl As Control
        Set MyControl = Screen.ActiveControl
    With CodeContextObject
        MyControl.RowSource = "SELECT CountriesQuery.Country, CountriesQuery.[Country Desc], CountriesQuery.[Country Region Ref] FROM CountriesQuery WHERE CountriesQuery.[Country Region Ref]= '" & .[Region] & "' ORDER BY CountriesQuery.[Country Desc];"
        Call ListDisplay
    End With
End Function
Code:
Function ClientsDialogueOverseas_CountryEnter()
    DoCmd.Requery "Country"
    Call LookupCountry
End Function
Simon
 
Hi jdraw and Simon MT. Thank you so much for your help.You guys Rock!!!
 

Users who are viewing this thread

Back
Top Bottom