Results 1 to 5 of 5
  1. #1
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286

    Remove WARNING messages?


    hello how do i disable the warning messages built in access when i run my delete query? is it in the settings somewhere? thanks

  2. #2
    JenEveAle is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    15
    I'm using 2007, but this is what I do. Make sure the "Show All Actions" button at the top of the macro design menu is selected. Then, in your action list, you'll see an option for "SetWarning". Choose that, and put "no" in the arguments. Put that line at the TOP of your macro.

    However, if you use this, I also recommend using a message box at the end to tell you the macro is done running. With no warnings, there's nothing alerting you to the progress of the process.

  3. #3
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    hrmm weird, but even though i put the set warnings to no in macro, it still shows up?

  4. #4
    robsworld78 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    181
    The VBA code is as follows.

    DoCmd.SetWarnings = True
    DoCmd.SetWarnings = False

    Make sure if you use one you use the other, or you could get into trouble. For extra insurance I always use the true twice. I put the false right in front on the code that causes the error and the true right after the code. I also add the true code on the main forms OnClose event just to be sure it was turned back on.

  5. #5
    taimysho0 is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Nov 2011
    Posts
    286
    thank you!

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

Similar Threads

  1. Macro messages
    By GraemeG in forum Programming
    Replies: 1
    Last Post: 06-03-2011, 07:57 AM
  2. Messages
    By grankioto in forum Forms
    Replies: 1
    Last Post: 11-18-2010, 09:26 PM
  3. Warning messages
    By Bobcoop103 in forum Access
    Replies: 3
    Last Post: 08-12-2010, 11:45 PM
  4. Custom messages to Access' default error messages.
    By evander in forum Programming
    Replies: 1
    Last Post: 06-26-2010, 02:06 AM
  5. Error Messages
    By DataGeek in forum Access
    Replies: 0
    Last Post: 12-06-2007, 09:56 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