Solved

Update Query

Posted on 2011-03-25
2
237 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
[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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
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 …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

752 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