Hi All,
I am trying to write a delete query that must have 2 conditions met before it removes the record from the table tblPO. P1 and L1 values are read from textboxes on my form, and only display values if a record in my table contains them. I would select my record from a listbox to populate P1 and L1
DoCmd.RunSQL ("DELETE * FROM tblPO WHERE PURCHASEORDER = '" & P1 & "' AND LINEITEM = '" & L1 & "';")
I simply cannot get this to work, have tried it with and without quotes, but nothing any ideas?
I am trying to write a delete query that must have 2 conditions met before it removes the record from the table tblPO. P1 and L1 values are read from textboxes on my form, and only display values if a record in my table contains them. I would select my record from a listbox to populate P1 and L1
DoCmd.RunSQL ("DELETE * FROM tblPO WHERE PURCHASEORDER = '" & P1 & "' AND LINEITEM = '" & L1 & "';")
I simply cannot get this to work, have tried it with and without quotes, but nothing any ideas?