Delete Query

B

Boon

Hi,

When I use inner join, or just a normal join, sometimes Access didn't allow
me to delete the records. Sometimes it allows me to delete, sometiems it
doesn't.

Here is a SQL that it didn't allow me to delete.

DELETE Dealer_BG.*
FROM Dealer_BG INNER JOIN Dealer ON Dealer_BG.DLRCD = Dealer.DLRCD;


What did I do wrong? I would appreciate if you would explain why I cannot
delete it.

Thanks,
B
 
V

vanderghast

Try:


DELETE DISTINCTROW Dealer_BG.*
FROM Dealer_BG INNER JOIN Dealer
ON Dealer_BG.DLRCD = Dealer.DLRCD;



Vanderghast, Access MVP
 

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