Solved

Update Query

Posted on 2011-03-25
2
216 Views
Last Modified: 2012-05-11
Hi,

I have an update query which specifies two accounts which i want to delete from another table if it matches this citeria

IIf(Mid([TRANS_REF],3,1)<>'D',[TRANS_REF])

I am making this in the design view, can i update into the same table i am using for the criteria, is that possible?

So i have one table and am saying, if any entries match this criteria, delete them

Thanks
Seamus
0
Comment
Question by:Seamus2626
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 35214401
If you're asking if you can do an UPDATE and DELETE in the same query then no, you cannot. You must run 2 queries - one to update, and a second to delete.
0
 

Author Closing Comment

by:Seamus2626
ID: 35214495
Perfect, changed it to delete!
Thanks
Seamus
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

920 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