I'm trying to delete from a query where there are two fields that must be matched. This works with one variable (or the other), but when I add the second, it doesn't work - I get a Run-time error 3061 - Too few parameters. Expected 1.
CurrentDb.Execute "DELETE FROM tblCurrent WHERE [Year] = " & "2005" & " AND PID = " & [Forms]![currentform]![PID] & ";"
Thanks for any suggestions.
CurrentDb.Execute "DELETE FROM tblCurrent WHERE [Year] = " & "2005" & " AND PID = " & [Forms]![currentform]![PID] & ";"
Thanks for any suggestions.