Solved

delete query syntax in access

Posted on 2013-01-31
2
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 38838710
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
ID: 38838754
thank you
0

Featured Post

Myth Busting: MongoDB Scalability (it scales!)

I was talking with one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. He mentioned to me that several customers have been telling him that “MongoDB doesn’t scale!” MongoDB’s scalability was in question?

My response was, “Is that a joke?"

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In database programming, custom sort order seems to be necessary quite often, at least in my experience and time here at EE. Within the realm of custom sorting is the sorting of numbers and text independently (i.e., treating the numbers as number…
As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

632 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