I am getting the above error in VBA when I try to execute this statement:
currentdb.Execute "Delete from [Job_Statement_with_MOSID] WHERE [Duty_area_Occupation] = 199 AND [Statement_ID] = 122839 AND [Job_Statement_ID] <> -77228"
where [Job_Statement_with_MOSID] is an updateable query, with three tables joined to get at one field value ([duty_Area_Occupation]).
The issue is not related to the WHERE, because I get the same error without a WHERE clause.
It is not related to an open form, because I can get the same error from the immediate pane (though the error first showed up in a form) with no forms open.
Now the strange part - if I open the query directly, I can delete the required record with no problem (and it does delete from the correct table).
Do any of you real experts have any ideas? The Help for that error, doesn't help!
Thanks
John