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!

Deleting Records! 1

Status
Not open for further replies.

Smitty020

MIS
Jun 1, 2001
152
US
OK, I have two tables. One has InvoiceNums, Amount, Date, ect... The second table also has InvoiceNums, Amount..and a few other attributes! I want to see all of the records from the first table where there isn't a matching InvoiceNum in the second table! I've tried delete queries, setting criteria in queries, but I just can't figure out exacrly how to do it! I've been away from Access for a while, so I'm a little rusty! Can anyone please help???

Thanks,
Smitty
 
SELECT Table1.InvoiceNum, Table1.Amount, Table1.Date
FROM Table1 LEFT JOIN Table2 ON Table1.InvoiceNum = Table2.InvoiceNum
WHERE Table2.InvoiceNum Is Null
 
Thanks for the help! I can't believe I was going about it the wrong way! It's been a long morning!

Smitty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top