Yes/No MsgBox

P

Pietro

Hi,
I,ve form that shows a Yes/No MsgBox,i want this message to beavailable
for 10 seconds only,if users don't press on "Yes" the message is closed and
[forms]![wt]![up]=Now()
How can i do this?
 
J

John W. Vinson

Hi,
I,ve form that shows a Yes/No MsgBox,i want this message to beavailable
for 10 seconds only,if users don't press on "Yes" the message is closed and
[forms]![wt]![up]=Now()
How can i do this?

You can't, with a Msgbox control. Do as Daniel suggests and create a small
unbound form to do so. Set its Timer property to 10000 (10,000 milliseconds =
10 seconds) and put code in its Timer event:

Private Sub Form_Timer()
Me!up = Now
DoCmd.Close acForm, Me.Name
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top