Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

delete query syntax in access

Posted on 2013-01-31
2
Medium Priority
?
190 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 2000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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…
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 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