Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / March 2005

Tip: Looking for answers? Try searching our database.

Close MsgBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbl - 22 Mar 2005 11:20 GMT
Hi I have a report when on no date it displays a MsgBox is it possible to
code the MsgBox to close say after say 5 seconds without using the OK
button? (I do want to keep the message.)

If so how do go about it setting it up.

Thanks Bob
Chuck - 22 Mar 2005 11:40 GMT
> Hi I have a report when on no date it displays a MsgBox is it possible to
> code the MsgBox to close say after say 5 seconds without using the OK
[quoted text clipped - 3 lines]
>
> Thanks Bob

I've done popups by creating a form with the message, and using the
TIMER INTERVAL event, coding if for 5000 (millisecs) and then issuing
the CloseForm (macro or vba) on the ONTIMER event.
Wayne Morgan - 22 Mar 2005 14:03 GMT
You'll need to create your own "MsgBox". To do this, create a form and set
it up to look like a message box. You would have the report open this form
using the acDialog window mode argument in the DoCmd.OpenForm call. This
will cause the code to pause until the popup form is closed or hidden, just
as the code pauses when you open a MsgBox. Since you are using a form, you
would then use the Timer Event of the form to have it close itself after the
desired time.

Signature

Wayne Morgan
MS Access MVP

> Hi I have a report when on no date it displays a MsgBox is it possible to
> code the MsgBox to close say after say 5 seconds without using the OK
[quoted text clipped - 3 lines]
>
> Thanks Bob
dbl - 24 Mar 2005 20:53 GMT
Hello Wayne,
I will give that try, thanks Bob

> You'll need to create your own "MsgBox". To do this, create a form and
> set it up to look like a message box. You would have the report open
[quoted text clipped - 11 lines]
>>
>> Thanks Bob
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.