Hello Guys,
Why am I getting error 3061 with this code? I checked all fields name to ensure they match my query and they do. What is the problem?
Why am I getting error 3061 with this code? I checked all fields name to ensure they match my query and they do. What is the problem?
Code:
Dim strSQL As String
strSQL = "SELECT [SupplyCateg], [Brand],[ItemNo],[Color], [Size], [LastOrdered] FROM QryEmailReminderList WHERE [LastOrdered] BETWEEN DATEADD(DAY,-30,DATE()) AND DATE() "
Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset, dbSeeChanges)