I'm trying to find a record based on multiple criteria.
I'm getting the error 3251
"Operation is not supported for this type of object"
I use the same criteria string for my DLookup without any problems.
Any ideas?
Code:
Dim db As Database
Dim rs As Recordset
Dim Criteria As String
Set db = CurrentDb
Set rs = db.OpenRecordset("tblCalendarEvents")
Criteria = "[date_of]=#" & ctldate & "# AND [sbjID]='" & strSbjID & "' AND [choices]='" & strChoice & "'"
rs.FindFirst Criteria
I'm getting the error 3251
"Operation is not supported for this type of object"
I use the same criteria string for my DLookup without any problems.
Any ideas?