I’m trying to get this code to work, but I’ get “Type Mismatch” on the strFilterCriteria line.
C_CG_Prod is the name of my query, and Data the name of a field in the query.
Dim db As Database
Dim strFilterCriteria As Date
strFilterCriteria = "SELECT * FROM C_CG_Prod WHERE Data = #" & InputBox "Which day:") & "# "
Set rs = db.OpenRecordset(strFilterCriteria, dbOpenDynaset)
I’d really appreciate some help.
Kathrin
C_CG_Prod is the name of my query, and Data the name of a field in the query.
Dim db As Database
Dim strFilterCriteria As Date
strFilterCriteria = "SELECT * FROM C_CG_Prod WHERE Data = #" & InputBox "Which day:") & "# "
Set rs = db.OpenRecordset(strFilterCriteria, dbOpenDynaset)
I’d really appreciate some help.
Kathrin