Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

MS Excel -- Application.DisplayAlerts=False

Discussion in 'Information Technology' started by Rubble, Nov 18, 2005.

  1. Rubble

    Rubble
    Expand Collapse
    Guest

    In Excel I can write Application.DisplayAlerts=False and it stops all of the
    alerts from interrupting my code. Is there a similar piece of code in Access
    that will stop Alerts from interrupting my programs?

    I know I can also control alerts for my copy of Access -- but I want
    something that will only control the alerts during specific procedures.

    Thanks --

    Jim
     
  2. Loading...

    Similar Threads Forum Date
    Canada Sukhdeep Kaur Chohan of Brampton Wins PM Award for Teaching Excellence Breaking News Mar 5, 2014
    India Sikh Regiment's Passion for Excellence Breaking News May 19, 2013
    Leisure Excellence -skills-Attitude Business, Lifestyle & Leisure Feb 14, 2010
    Katha Excellent Katha by Bhai Ram Singh Kathavachak Videos Aug 8, 2009
    [SPN] Celebrating Five Years of Excellence & Learning Announcements Jun 3, 2009

  3. Larry Linson

    Larry Linson
    Expand Collapse
    Guest

    "Rubble" <Rubble@discussions.microsoft.com> wrote in message
    news:7D40CE7C-FB8D-431E-886D-6E7193ABCBEE@microsoft.com...
    > In Excel I can write Application.DisplayAlerts=False and it stops all of
    > the
    > alerts from interrupting my code. Is there a similar piece of code in
    > Access
    > that will stop Alerts from interrupting my programs?
    >
    > I know I can also control alerts for my copy of Access -- but I want
    > something that will only control the alerts during specific procedures.


    DoCmd.SetWarnings False will turn off the controllable warnings;
    DoCmd.SetWarnings True will turn them back on again. Be careful how you use
    them -- it isn't as bad as setting Echo off so the screen isn't updated and
    forgetting to set it back on, but the lack of warnings where you _want_ them
    can be problematical.

    Larry Linson
    Microsoft Access MVP
     
  4. Rubble

    Rubble
    Expand Collapse
    Guest

    Thank you !!! I couldn't figure out how to turn the warnings off !!! Super
    helpful

    "Larry Linson" wrote:

    >
    > "Rubble" <Rubble@discussions.microsoft.com> wrote in message
    > news:7D40CE7C-FB8D-431E-886D-6E7193ABCBEE@microsoft.com...
    > > In Excel I can write Application.DisplayAlerts=False and it stops all of
    > > the
    > > alerts from interrupting my code. Is there a similar piece of code in
    > > Access
    > > that will stop Alerts from interrupting my programs?
    > >
    > > I know I can also control alerts for my copy of Access -- but I want
    > > something that will only control the alerts during specific procedures.

    >
    > DoCmd.SetWarnings False will turn off the controllable warnings;
    > DoCmd.SetWarnings True will turn them back on again. Be careful how you use
    > them -- it isn't as bad as setting Echo off so the screen isn't updated and
    > forgetting to set it back on, but the lack of warnings where you _want_ them
    > can be problematical.
    >
    > Larry Linson
    > Microsoft Access MVP
    >
    >
    >
     

Share This Page