This is almost the same as my previous problem. But this is a delete query. On the line Set rs = db.OpenRecordset(sqlQuery), I get error Run-Time error '3219' Invalid Operation. Follow is the entire function
Public Function modCal_removePrebilledJob() ' remove job from tblCalendar
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim sqlQuery As String
Set db = CurrentDb
sqlQuery = "DELETE * FROM tblCalendar WHERE fLngAProposalNo = 20250762;"
Set rs = db.OpenRecordset(sqlQuery)
Do While Not rs.EOF
Debug.Print rs!fLngProposalNo
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Set db = Nothing
End Function
Please help, thank you.