Welcome to SPN

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

Sign Up Now!

MsgBox timeout?

Discussion in 'Information Technology' started by Maury Markowitz, Oct 27, 2005.

Tags:
  1. Maury Markowitz

    Maury Markowitz
    Expand Collapse
    Guest

    I have a msgbox I use to stop processing just before saving a file. However
    the users sometimes forget and walk away, so the file never gets saved.

    Is there some way to have a timeout, so after 10 seconds (for instance) it
    presses the OK/Cancel/whatever button?

    Maury
     
  2. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "Maury Markowitz" <MauryMarkowitz@discussions.microsoft.com> wrote in
    message news:BD829D19-43A1-4A54-B22D-15736C36DE9E@microsoft.com
    > I have a msgbox I use to stop processing just before saving a file.
    > However the users sometimes forget and walk away, so the file never
    > gets saved.
    >
    > Is there some way to have a timeout, so after 10 seconds (for
    > instance) it presses the OK/Cancel/whatever button?


    The easiest way is to use your own dialog form instead of calling the
    MsgBox function, and use the form's Timer event to do whatever is
    necessary to close the form and return the default response.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     

Share This Page