Google Answers Logo
View Question
 
Q: Union Query Delete ( No Answer,   1 Comment )
Question  
Subject: Union Query Delete
Category: Computers > Programming
Asked by: bselltiz-ga
List Price: $2.50
Posted: 14 Jan 2003 09:31 PST
Expires: 17 Jan 2003 08:19 PST
Question ID: 142542
How can I delete from a union query. I would like to do this using the
connection.execute command line from vba.
Running Access 2002 under WinXP
Answer  
There is no answer at this time.

Comments  
Subject: Re: Union Query Delete
From: mikethrel-ga on 17 Jan 2003 06:58 PST
 
UNION queries are unupdateable... no adds, no updates, no deletes.
Once the
query is UNIONed, Jet can't determine the source of a given record.

So, you'd have to add a field(s) to the query results to know the
source table.  Then you could build your sql statement using the name
of the table to delete from and execute it using the
connection.execute command.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy