Solved

delete query syntax in access

Posted on 2013-01-31
2
183 Views
Last Modified: 2013-01-31
I have two tables both with VRR_VehicleID I was hoping to delete the records in TblExporthVinstems that are in table [Upload forcedmatches] I have sql as:

DELETE *
FROM TblExporthVinstems
WHERE NOT EXISTS (SELECT * FROM TblExporthVinstems where TblExporthVinstems.[VRR_VehicleID] = [Upload ForcedMatches].[VRR_VehicleID]);

but when i run it doesnt know [Upload ForcedMatches].[VRR_VehicleID] it sits there waiting for a parameter and not sure why.
ee.PNG
0
Comment
Question by:PeterBaileyUk
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
I presume it's simply because you have to say = [Upload ForcedMatches] in the frmo
DELETE *
FROM TblExporthVinstems
WHERE NOT EXISTS (SELECT * FROM  [Upload ForcedMatches]  where TblExporthVinstems.[VRR_VehicleID] = [Upload ForcedMatches].[VRR_VehicleID]); 

Open in new window

0
 

Author Closing Comment

by:PeterBaileyUk
Comment Utility
thank you
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now