PC Review


Reply
Thread Tools Rate Thread

Access Key Violations

 
 
Michael Kintner
Guest
Posts: n/a
 
      12th Aug 2005
How can I tell access that no matter what error I get to continue anyway
with out having user interaction?

For example: I have a append query and I get the error message: can't append
all records in the append query due to key violations do you wish to
continue? I then click Yes. How can I have access to due automatically
with no user interaction? I have turned off all the confirm options under
the tools options menu but no luck.

Thank you in advance for any help, this has been driving me crazy.
Mike


 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      12th Aug 2005
If you are running the query through a macro or VB code, you can use the Set
Warnings action (method) to turn them off. Be sure to turn them back on
immediately after the command is issued, because they'll stay off until you
do (or until you close the database and open it again.)

On warning, though. No code will allow you to enter records if there is a
key violation. Setting the warning off will just let the query continue
without appending the offending records.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Michael Kintner" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How can I tell access that no matter what error I get to continue anyway
> with out having user interaction?
>
> For example: I have a append query and I get the error message: can't

append
> all records in the append query due to key violations do you wish to
> continue? I then click Yes. How can I have access to due automatically
> with no user interaction? I have turned off all the confirm options

under
> the tools options menu but no luck.
>
> Thank you in advance for any help, this has been driving me crazy.
> Mike
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access .adp :How to INSERT all but KEY violations JimJimJim Microsoft Access ADP SQL Server 1 23rd Nov 2004 04:29 AM
Access violations =?Utf-8?B?TWFyaWFo?= Windows XP Help 1 1st Apr 2004 10:50 AM
PC Probe - Access violations electro@nowhere.com Asus Motherboards 2 30th Dec 2003 01:19 PM
Need Help with Access Violations Keith Russell Windows XP Help 2 3rd Nov 2003 01:16 AM
Access violations Mike Microsoft Windows 2000 1 13th Oct 2003 07:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.