At the end of the SetListRS routine, add this line: Debug.Print Me!InspList.Rowsource. Then see what is displayed, it may be a date format issue.
At the end of the SetListRS routine, add this line: Debug.Print Me!InspList.Rowsource. Then see what is displayed, it may be a date format issue.
The value will be displayed in the Immediate window below the code. If it isn't displayed clicked on View>Immediate Window.Code:Private Sub TxtPDate_AfterUpdate() Debug.Print Me!TxtPDate Call SetListRS End Sub
This line will also work:
Code:ListRS = ListRS & " WHERE TblQualityInspection.FGID = " & Me!TxtProduct & " AND Format(PDate,'yyyymmdd') = '" & Format(Me!TxtPDate, "yyyymmdd") & "'"