ACC2000: How to Create a "Please Wait" Message

ID: Q209608


The information in this article applies to:
  • Microsoft Access 2000


SUMMARY

Moderate: Requires basic macro, coding, and interoperability skills.

Sometimes you may want to display a status message to inform users that they must wait for an action to be completed. For example, you may want to display the text "Please Wait" while Microsoft Access is initializing a database, running a long query, and so on. This article uses the sample database Northwind.mdb to show you how to create a "Please Wait" message.


MORE INFORMATION

To display a status message in Microsoft Access, do the following:

  1. Create the following form not based on any table or query:
    
       Form: PleaseWait
       ---------------------
       Caption: TestForm
       ScrollBars: Neither
       Popup: Yes
       Modal: Yes
       RecordSelectors: No
       NavigationButtons: No
    
       Label
       --------------------
       Caption: Please Wait
       Font Size: 18 
    The label caption is the message you want to display.


  2. Create the following macro named Test1:
    
       Macro Name             Action
       -----------------------------
       Test1                  OpenForm
                              RepaintObject
                              OpenQuery
                              Close
    
       Test1 Actions
       -----------------------------
       OpenForm
       Form Name: PLEASEWAIT
       View: Form
       Data Mode: Read Only
       Window Mode: Normal
    
       RepaintObject
       Object Type: Form
       Object Name: PLEASEWAIT
    
       OpenQuery
       Query Name: Order Details Extended
       View: Datasheet
    
       Close
       Object Type: Form
       Object Name: PLEASEWAIT
       Save: No 
    NOTE: The above argument for OpenQuery is just an example of what you may want to run; this can be anything. The main macro actions in Test1 are OpenForm, RepaintObject, and Close.


  3. Run the macro. Note that the PleaseWait form opens. As soon as the query completes processing, the form disappears and the query results appear.


Additional query words: statusbar status bar meter wait

Keywords : kbdta FmsOthr
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: May 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.