Solved

delete query syntax in access

Posted on 2013-01-31
2
188 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

751 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