Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

joined deleting

Status
Not open for further replies.

trustsun

Technical User
Feb 4, 2004
73
US
I get the error: Specify the table containing the records you want to delete. Here’s the SQL:

DELETE tblcarrier.Store#, tblcarrier.Request, tblcarrier.Date, tblPkupNoCmp.ACT
FROM tblcarrier INNER JOIN tblPkupNoCmp ON tblcarrier.Store# = tblPkupNoCmp.Store#
WHERE tblPkupNoCmp.ACT="NoInfo" Or (tblPkupNoCmp.ACT<>"OK";


I’m trying to delete records from table tblPkupNoCmp that is joined to table tblcarrier and I get the error above. How can I revise this?
 
Do you mean something like:

DELETE * FROM tblPkupNoCmp
WHERE (tblPkupNoCmp.ACT="NoInfo"
OR tblPkupNoCmp.ACT<>"OK")
AND tblPkupNoCmp.Store#
IN (Select Store# From tblCarrier);

I hope I have that right, but best check.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top