I am using the Delete statement to allow the user to delete an item from a list box by clicking a command button. I have the following code in the ON CLICK property
DOCMD.RunSQL ("DELETE FROM tblSelectedFields _
WHERE SelectedField = me.lstSelectedFields, _
MasterProjectID = me.cmbProject")
I get a compile error: Expected:List Separator or ) with the WHERE highlighted.
What is wrong with my syntax?
Scott
DOCMD.RunSQL ("DELETE FROM tblSelectedFields _
WHERE SelectedField = me.lstSelectedFields, _
MasterProjectID = me.cmbProject")
I get a compile error: Expected:List Separator or ) with the WHERE highlighted.
What is wrong with my syntax?
Scott