I keep getting the above error message on the “rst.MoveFirst” line of code below.
Set db = CurrentDb
strSQL = “SELECT JOB ” & _
“FROM tmpOneJobOnePayDay ” & _
“GROUP BY JOB;”
Set rst = db.OpenRecordset(strSQL, dbOpenDynaset)
rst.MoveFirst
I have tried compacting and repairing. I have tried Decompiling. I have tried creating a new database and importing the tables, I have checked my References, and yet I cannot understand why. I know ih the past I have been able to open a recordset and move through it, but now I can’t.
Where should I look next?
Thanks in advance for your assistance.
Ken