missing operator on a delete query

kes

Registered User.
Local time
Today, 23:37
Joined
Mar 6, 2013
Messages
53
hi,
I'm trying to find a solution for this without success...
I bet is rather simple and I'm missing it...

I have this code:
Code:
CurrentDb.Execute "DELETE FROM Type WHERE Project_ID =" & Me.Project_ID & " & AND (Type = '" & Me.Txt_Type & "')"

and I'm getting this error message:

Syntax error(missing operator) in query expression 'Project_ID = AND (Type = 'Webinar')'

hope you can help...
 
Try this:

CurrentDb.Execute "DELETE FROM Type WHERE Project_ID = " & Me.Project_ID & " AND [Type] = '" & Me.Txt_Type & "'"
 

Users who are viewing this thread

Back
Top Bottom