Results 1 to 5 of 5
  1. #1
    Coolpapabell is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2009
    Posts
    19

    unable to append... key violation... message box

    Is there anyway that I can suppress / disable query warning messages about not being able to append all data asking if you want to continue even if ## records were lost to key violations.



    I want the query to execute and add the records it can regardless and I don't want the user responding to message boxes.

    Thank you

  2. #2
    RickM is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2009
    Posts
    15
    Did you try the code DoCmd.SetWarnings False before the run query command?

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    CurrentDB.Execute does *not* issue warning messages and any errors can be trapped with error handling code.

  4. #4
    Coolpapabell is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2009
    Posts
    19
    Thanks you kindly for the help!
    The docmd.setwarnings did the trick.

    I also appreciate the heads up regarding CurrentDB.Execute commands and know that I should look more into them.

    Thanks again




  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    We're both glad you got it sorted. Thanks for posting back and using the Solved tool.

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

Similar Threads

  1. Control Value Select Append
    By NinjasVsPirates in forum Programming
    Replies: 0
    Last Post: 08-18-2009, 10:42 AM
  2. append to memo field
    By stuart rose in forum Programming
    Replies: 1
    Last Post: 08-12-2009, 10:02 AM
  3. Unable to close Query without saving
    By jhrBanker in forum Access
    Replies: 0
    Last Post: 06-08-2009, 05:09 PM
  4. Replies: 1
    Last Post: 03-09-2006, 01:50 PM
  5. Unable to import or link tables through odbc in Access SP2
    By Dave Jenkins in forum Import/Export Data
    Replies: 3
    Last Post: 11-09-2005, 11:51 AM

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