G
Guest
I'm using the following open recordset to check my SQL database for
duplicates on two keys: Composite_name and month. I'm getting the error
"Type Mismatch" The "month" field in the SQL database is set as a date
field and set as a date field in Access as well. I've tried to declare the
"month" field as different types of variables.
Set rst = db.OpenRecordset("SELECT Month and Composite_Name FROM
dbo_TblMonthlyData " & _
"WHERE Composite_Name = " & QUOTE & strCompositeName & QUOTE And QUOTE &
strmonth & QUOTE, dbOpenDynaset)
duplicates on two keys: Composite_name and month. I'm getting the error
"Type Mismatch" The "month" field in the SQL database is set as a date
field and set as a date field in Access as well. I've tried to declare the
"month" field as different types of variables.
Set rst = db.OpenRecordset("SELECT Month and Composite_Name FROM
dbo_TblMonthlyData " & _
"WHERE Composite_Name = " & QUOTE & strCompositeName & QUOTE And QUOTE &
strmonth & QUOTE, dbOpenDynaset)