I am having trouble with this code. When I click on "Form View", and hit the appropriate option button, my listbox AfterUpdate() is blank. However, when i submit the form the value shows up in my database that is in the listbox because I can select different blank rows in my listbox.
Code:
Private Sub Frame24_AfterUpdate()
Dim MySQL As String
Dim MyCriteral As String
MySQL = "SELECT Facility FROM Facilities WHERE " & MyCriteria
Select Case Me.Frame24
Case Is = 1
MyCriteria = "System = ""Customers"" "
Case Is = 2
MyCriteria = "System = ""Employer"" "
End Select
Me.List35.RowSource = MySQL & MyCriteria
End Sub