You can not make a standard msgbox close after a given period of time, but here is some code for a good work around. You can build your own form, but this provides a lot of flexibility.
Private Sub txtBxCloseOnValue_AfterUpdate()
If Me.txtBxCloseOnValue = "Close" Then
MsgBox "You entered 'Close'. About to Close", vbinfo, "CLOSING"
DoCmd.Close acForm, Me.Name
End If
End Sub
If you desire replace the Msgbox with a call to the code from the link above. Then you can use set the display time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.