Results 1 to 10 of 10
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919

    How to suppress "notice flashes" during automation actions


    In the segment of code pictured below, each time the "DoCmd.OutputTo" statement fires, there's a screen flash denoting the operation of the file save. How can I turn that off?

    Click image for larger version. 

Name:	000.jpg 
Views:	19 
Size:	83.6 KB 
ID:	51321

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    By "screen flash" you mean the popup print notification? That is a Windows message and preventing may not be simple.
    https://stackoverflow.com/questions/...ges-or-prompts
    Last edited by June7; 01-11-2024 at 02:45 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    One suggestion in the references you gave:
    DoCmd.SetWarnings false
    DoCmd.SetWarnings true

    Application.DisplayAlerts = false
    Application.DisplayAlerts = true

    Won't compile, as the compiler tells me the "DisplayAlerts" imethod not found.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Yet, that's what I could find. Guess you will have to keep searching - if you really think it's worth the effort. I don't because surely users are already fully accustomed to seeing this message when printing from anywhere.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Application.DisplayAlerts = false is Excel I believe?, at least they work there.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    I think for the time being I'd consider it "not worth the effort". I'll leave the thread open in case someone comes up with a solution. Moving along.................

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I saw another recent thread about suppressing a Windows popup message (different one, can't remember which). Responses pointing to API code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    The Access equivalent for DisplayAlerts is Echo, is it not?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    These don't work? What am I missing.

    DoCmd.SetWarnings false
    Docmd.OutputTo.....
    DoCmd.SetWarnings true

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    SetWarnings has nothing to do with Windows System messages, only Access generated warnings and alerts, usually used to suppress messages associated with DoCmd.RunSQL.

    This thread talks about API coding https://stackoverflow.com/questions/...od/69726#69726
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Suppress "Requery" and/or "Repaint" when running function
    By GraeagleBill in forum Programming
    Replies: 3
    Last Post: 12-08-2017, 12:04 AM
  2. How to suppress "Right-Click" action on a text box
    By GraeagleBill in forum Programming
    Replies: 9
    Last Post: 11-19-2016, 02:41 AM
  3. Replies: 2
    Last Post: 07-31-2015, 02:49 PM
  4. Suppress "Error" message following "Cancel = True"
    By GraeagleBill in forum Programming
    Replies: 7
    Last Post: 03-23-2014, 05:40 PM
  5. Replies: 3
    Last Post: 11-15-2011, 02:41 PM

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