Creating a Message Box

When you create a macro, you may want to give database users information about how the macro works as it runs. You can create message boxes for your macros that, for example, ask the user if he or she wants to proceed. You do this with the MsgBox action. The MsgBox action allows you to specify the text of the message, whether or not a beep sounds when the box is displayed, the type of box that appears, and the box's title. Access supports five different types of message boxes. Each one has a different icon. The icons convey the importance of the message box, ranging from merely being informative to indicating a serious error.

Create a Message Box

graphics/1_icon.jpg

In the Database window, display the macro in Design view to which you want to add a message box.

graphics/2_icon.jpg

Click in an action box, and then type MsgBox .

graphics/3_icon.jpg

Specify the text you want contained in the message box.

graphics/4_icon.jpg

Indicate whether a beep will accompany the message.

graphics/5_icon.jpg

Specify the box type.

  • Critical

  • Warning?

  • Warning!

  • Information

  • None

graphics/6_icon.jpg

Enter the box title.

graphics/7_icon.jpg

When you're done, click the Close button.

graphics/13inf20.jpg



Show Me Microsoft Office Access 2003
Show Me Microsoft Office Access 2003
ISBN: 0789730049
EAN: 2147483647
Year: 2002
Pages: 318

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net