I have been fighting with this for a while, and I know someone on this board will be able to figure it out in a split second :)
I have a List Box and a Combo Box. Based on the selection the user makes in the Combo Box, I need for the Rowsource in the List Box to be changed to one of two queries, and requeried so the user can select an option from the List Box based on the newly selected criteria from the Combo Box.
I thought it would be fairly simple, but its not working, and im not exactly sure what I am doing wrong :(
Here is the code that I have messing aound with (AppPosition being the Combo Box and ClassSelectLIST being the List Box):
Thanks guys, and if any details are unclear as to what I am trying to do please let me know!
I have a List Box and a Combo Box. Based on the selection the user makes in the Combo Box, I need for the Rowsource in the List Box to be changed to one of two queries, and requeried so the user can select an option from the List Box based on the newly selected criteria from the Combo Box.
I thought it would be fairly simple, but its not working, and im not exactly sure what I am doing wrong :(
Here is the code that I have messing aound with (AppPosition being the Combo Box and ClassSelectLIST being the List Box):
Code:
Private Sub AppPosition_Change() 'CHANGE THE ROWSOURCE QUERY IN THE ClassSelectLIST LIST BOX 'THEN REQUERY If Me.Controls!AppPosition = "Trainer" Then Me!ClassSelectLIST.RowSource = (qry_FindAvailableSlotsTRA) Else Me!ClassSelectLIST.RowSource = (qry_FindAvailableSlotsINS) End If Me!ClassSelectLIST.Requery End Sub
Comment