Results 1 to 5 of 5
  1. #1
    justinr12345 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2018
    Posts
    7

    When to catch Access Dataerr 8517 “Do you want to suppress further error messages for why you can't


    I am programming my Audit table to handle events when a user deletes multiple records which have referential integrity errors preventing it from being deleted (Access DataErr 3200). If a user deletes multiple records with errors, access will ask to suppress further error messages, if YES is selected, the error event wont run for the bad records, thus causing a build-up of bad Audit records. Where can I catch this error and ideally program it to 'No' so it displays each error. I cant use DoCmd.SetWarnings as that auto seelcts 'Yes' and I am trying to auto select 'No'. Thanks

  2. #2
    justinr12345 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2018
    Posts
    7
    Bump..............

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Not sure I follow but perhaps use this in your error handler????

    Code:
    if err=3200 Then Resume Next
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    justinr12345 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2018
    Posts
    7
    Quote Originally Posted by ridders52 View Post
    Not sure I follow but perhaps use this in your error handler????

    Code:
    if err=3200 Then Resume Next

    I am attempting to handle error 8517 "Do you want to suppress further error messages for why you cant delete", except the error is never passed to Form_Error. You can replicate by deleting two records with referential integrity errors. The BeforeUpdate event hits, then the Error event with DataErr=3200. Once the Error event passes we get the popup for error 3200, then the popup suppress message for 8517. I dont understand how two errors (3200 and 8517) are happening simultaneously? I can't leave DoCmd.SetWarnings False either as it auto selects 'Yes' to suppress further error messages and I am attempting to program it always to choose 'No;.

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    As you have the problem, please post a sample for us to work on.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error code to prevent error messages
    By sanal in forum Programming
    Replies: 11
    Last Post: 05-09-2018, 11:29 AM
  2. How can I make Access not show error messages?
    By securitywyrm in forum Access
    Replies: 16
    Last Post: 01-31-2018, 09:44 PM
  3. Error Messages On Subforms, Access 2016
    By roxdrob in forum Forms
    Replies: 19
    Last Post: 10-07-2017, 11:40 PM
  4. How to catch oracle exception error
    By nvrwrkn in forum Programming
    Replies: 2
    Last Post: 10-09-2012, 06:06 AM
  5. Custom messages to Access' default error messages.
    By evander in forum Programming
    Replies: 1
    Last Post: 06-26-2010, 02:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums