Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Combo1_AfterUpdate()
Dim Combo1_value As String
Dim Combo2_Row_Source_Type As String
Dim Combo2_Row_Source As String
Combo1_value = Me.Combo1
Select Case Combo1_value
Case "X"
Combo2_Row_Source_Type = "Table/Query"
Combo2_Row_Source = "SELECT DISTINCTROW [tblMembers].[LastName] FROM [tblMembers];"
Case "Y"
Combo2_Row_Source_Type = "Table/Query"
Combo2_Row_Source = "SELECT * [tblVisitors].[Name] FROM [tblVisitors];"
Case "Z"
Combo2_Row_Source_Type = "Table/Query"
Combo2_Row_Source = "SELECT * [tblGuests].[FullName] FROM [tblGuests];"
End Select
Me.Combo2.RowSourceType = Combo2_Row_Source_Type
Me.Combo2.RowSource = Combo2_Row_Source
Me.Combo2.Requery
End Sub