Greetings ~
I'm using a form with ComboBoxes where users will select a value from the ComboBox which the database will then filter on that value to populate a ListBox.
I have 9 of these ComboBoxes and 7 of the 9 work perfectly... The other two have begin shift times and end shift times stored in them and those will only filter correctly on one value, 12:00 AM and on a few others it will return only a partial of the total records while on most of them the filter will return nothing at all...
Below is the code used to populate the ComboBoxes
Code:
SELECT DISTINCT Sheet1.[Shift Begin] FROM Sheet1 ORDER BY Sheet1.[Shift Begin];
Below is the code used to trigger the filter event when a value is selected (or typed) into the ComboBox
Code:
Private Sub Combo72_AfterUpdate()
'Filter on Shift Begin Time
Me.List37.RowSource = "SELECT Sheet1.[Emp ID], Sheet1.[First Name], " & _
"Sheet1.[Last Name], Sheet1.FullName, Sheet1.[Agent Email Address], " & _
"Sheet1.Supervisor, Sheet1.Manager, Sheet1.Company, Sheet1.Location, " & _
"Sheet1.[Shift Begin], Sheet1.[Shift End], Sheet1.[Contact #], Sheet1.[Shift Code] " & _
"FROM Sheet1 WHERE (((Sheet1.[Shift Begin])=[Forms]![Sheet1]![Combo72])) ORDER BY Sheet1.FullName; "
'Me.Combo72 = ""
End Sub
Any help with this mystery would be greatly appreciated ~