I'm receiving the above error when running this code, can anyone tell me why it's not working?
Set rstBook = GetRecordsetFromSQL("INSERT INTO jmr101.evttblPlacement ( perID, evtID, evtRoleAtEvent, evtNumPlaces, pmtDateAdded, pupYearGroup ) " & _
" VALUES (" & rstImportThese![ID] & "," & _
intEvtID & "," & _
"'" & "203" & "'" & _
",1,GETDATE(), " & rstImportThese![YearGroupID] & " ) ", adOpenForwardOnly, adLockOptimistic)
ThrowawayRecordset rstBook
Set rstBook = GetRecordsetFromSQL("INSERT INTO jmr101.evttblPlacement ( perID, evtID, evtRoleAtEvent, evtNumPlaces, pmtDateAdded, pupYearGroup ) " & _
" VALUES (" & rstImportThese![ID] & "," & _
intEvtID & "," & _
"'" & "203" & "'" & _
",1,GETDATE(), " & rstImportThese![YearGroupID] & " ) ", adOpenForwardOnly, adLockOptimistic)
ThrowawayRecordset rstBook