Group:  Microsoft Access ยป microsoft.public.access.modulescoding
Thread: Time out on message box?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Time out on message box?
"Mr. Smith" <nospam[ at ]nospam.com> 13.09.2006 19:33:25
Hi. I have developed an Access application which gives quite a few "Ok"
messages after the user have completed different tasks. My users are kind of
"click" tired, and I wonder if it's possible to show an MsgBox only for a
second before it disappears automatically?



Any hints appreciated



Kind regards

Mr. Smith




Re: Time out on message box?
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> 13.09.2006 19:39:58
Create your own form that looks like a message box, put code in it to set
the form's TimerInterval property to whatever duration you want when you
open the form, and code in the form's Timer event to close the form when the
time limit is reached:

Private Sub Form_Load()
Me.TimerInterval = 1000
End Sub

Private Sub Form_Timer()
DoCmd.Close
End Sub

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Mr. Smith" <nospam[ at ]nospam.com> wrote in message
news:%23%230$8t21GHA.3516[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> Hi. I have developed an Access application which gives quite a few "Ok"
> messages after the user have completed different tasks. My users are kind
> of "click" tired, and I wonder if it's possible to show an MsgBox only for
> a second before it disappears automatically?
>
>
>
> Any hints appreciated
>
>
>
> Kind regards
>
> Mr. Smith
>
>
>
>


Re: Time out on message box?
"Mr. Smith" <nospam[ at ]nospam.com> 13.09.2006 19:57:47
Great Douglas!

Thanks
Mr. Smith

"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> wrote in message
news:ejytmx21GHA.4796[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Create your own form that looks like a message box, put code in it to set
> the form's TimerInterval property to whatever duration you want when you
> open the form, and code in the form's Timer event to close the form when
> the time limit is reached:
>
> Private Sub Form_Load()
> Me.TimerInterval = 1000
> End Sub
>
> Private Sub Form_Timer()
> DoCmd.Close
> End Sub
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Mr. Smith" <nospam[ at ]nospam.com> wrote in message
> news:%23%230$8t21GHA.3516[ at ]TK2MSFTNGP06.phx.gbl...
>> Hi. I have developed an Access application which gives quite a few "Ok"
>> messages after the user have completed different tasks. My users are kind
>> of "click" tired, and I wonder if it's possible to show an MsgBox only
>> for a second before it disappears automatically?
>>
>>
>>
>> Any hints appreciated
>>
>>
>>
>> Kind regards
>>
>> Mr. Smith
>>
>>
>>
>>
>
>


Re: Time out on message box?
Tim Ferguson <FergusonTG[ at ]softhome.net> 14.09.2006 19:10:42
"Mr. Smith" <nospam[ at ]nospam.com> wrote in
news:##0$8t21GHA.3516[ at ]TK2MSFTNGP06.phx.gbl:

[Quoted Text]
> Hi. I have developed an Access application which gives quite a few
> "Ok" messages after the user have completed different tasks. My users
> are kind of "click" tired, and I wonder if it's possible to show an
> MsgBox only for a second before it disappears automatically?

Or, another approach,

If userExpertMode = False Then
MsgBox "Fatuous information", vbOK, "Just in case you forgot"
End If


Tim F

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net