sql delete syntax

A

Alex

Can someone please help me with my syntax.

strSQL = "DELETE * FROM AllNewParts WHERE [Model] = Me.Model & [Part] =
Me.New Part & [NHL] = Me.New Part NHL

I am trying to delete records from the AllNewParts table and I have a hard
time with this syntax. All 3 fields are text. Thanks for your help. Alex
 
K

Klatuu

strSQL = "DELETE * FROM AllNewParts WHERE [Model] = '" & Me.Model & "'
AND[Part] = '" & Me.[New Part] & "' AND [NHL] = '" & Me.[New Part NHL] & "'"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top