Results 1 to 5 of 5
  1. #1
    reburton is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2013
    Posts
    14

    Suppressing alert messages


    I have a routine that runs a series of 15 queries and I get three messages for each query. I answer with the default to each message. I know how to suppress alerts in excel, but the Access VBA does not support the command. I suspect there is a way but I can't find it.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    This is some code I use

    Code:
    ' turn off warnings for updates
    DoCmd.SetWarnings False
    DoCmd.RunSQL strSQL 'Delete the files. These are duplicates
    ' turn on warnings for updates
    DoCmd.SetWarnings True

  3. #3
    reburton is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2013
    Posts
    14
    Thanks! I really appreciate it!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Thanks Paul,

    Interesting, I have used both and never gave it much thought. I will have to look into that further.

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

Similar Threads

  1. Suppressing Access messages
    By Reaper in forum Forms
    Replies: 1
    Last Post: 11-06-2011, 04:02 PM
  2. Suppressing a msgbox
    By alphabetsoup in forum Forms
    Replies: 3
    Last Post: 10-04-2011, 10:30 AM
  3. Custom messages to Access' default error messages.
    By evander in forum Programming
    Replies: 1
    Last Post: 06-26-2010, 02:06 AM
  4. Replies: 3
    Last Post: 10-15-2009, 12:24 PM
  5. Customs Alert Messages on specific dates
    By edupi in forum Access
    Replies: 1
    Last Post: 05-08-2009, 04: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