dbTalk Databases Forums  

Checking for the return status of an Action query

comp.database.ms-access comp.database.ms-access


Discuss Checking for the return status of an Action query in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
darstar
 
Posts: n/a

Default Checking for the return status of an Action query - 07-20-2004 , 06:52 PM






Hi,

This is a basic question, but Access' online help is NO help.

I want to run an append query like the following:

DoCmd.OpenQuery "Append_New", acViewNormal, acEdit

If this append was successful then I want to run further code, else I
want to exit.

If I use error trapping, that doesn't work. For instance, when I run
the "Append_New" append query and there is a key violation, that is
not considered an error, yet I still want to exit.

There MUST be a way to trap the success or failure of a statement a la
UNIX.

HELP PLEASE....

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.