I am trying to update a listbox based on another listbox. I have the following code, but I am not sure why it is not working. Ideally, I want to be able to make a selection from the Region listbox and have the CTB listbox update with the relevant choices. Any help is appreciated.
Code:
Private Sub Region_Click()
Dim myRegion As String: myRegion = Me.Region.Value
Me.CTB_Name.RowSource = SELECT [CTB query].CTB_ID, [CTB query].NAME, [CTB query].STATE FROM [CTB query] ORDER BY [NAME], [STATE], [CTB_ID];