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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble selecting criteria in a delete query, from another table

Status
Not open for further replies.

ddowling

Technical User
Feb 28, 2001
2
US
I have two tables [inventory received] and [poissued]. I am trying to delete the record in [poissued] when [inventory recieved].[purchaseordernumber] is the same as [poissued].[ponumber]. When I set it up it keeps prompting the user to enter the ponumber rather than read it from the [invventory received] table. Any ideas on the sql for this?
 
DELETE *
FROM poissued
WHERE (poissued.ponumber) In (SELECT inventrec.ponumber
FROM inventrec;);
I abbreviated the table names and such from your example but you should get the general idea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top