I can't find the error in the string. Can anyone help?
PStartDate is a date type and PMyCat is a number type
strSQL = "SELECT * FROM qryMembers WHERE [MyScanInDate] = # " & PStartDate & " # And [CategoryID] = " & PMyCat ORDER BY [MemberID], [ScanInDate], [Flag]"
PStartDate is a date type and PMyCat is a number type
strSQL = "SELECT * FROM qryMembers WHERE [MyScanInDate] = # " & PStartDate & " # And [CategoryID] = " & PMyCat ORDER BY [MemberID], [ScanInDate], [Flag]"