

If there is no current supplier on the Suppliers form, display a message.įorm Name: Product List View: DatasheetFilter Name: Where Condition: = !! Data Mode: Read OnlyWindow Mode: Normal Beep: YesType: NoneTitle: Select a Supplier Message: Move to the supplier record whose products you want to see, then click the Review Products button again. Stop screen updating while the macro is running. This macro should be attached to the Review Products button on the Suppliers form.

It also shows the use of a conditional expression with the MessageBox, GoToControl, and StopMacro actions. It shows the use of the Echo, MessageBox, GoToControl, StopMacro, OpenForm, and MoveAndSizeWindow actions. The following macro opens a Product List form in the lower-right corner of the Suppliers form, displaying the current supplier's products. You can't run the MessageBox action in a Visual Basic for Applications (VBA) module. Type the following string in the Message argument: The third section is displayed as plain text beneath the second section, with a blank line between them. The second section is displayed as plain text beneath that heading. The first section of text in the message is displayed as a bold heading. The following example displays a formatted message box with a sectioned message. You separate the sections with the character. The MessageBox action permits you to supply a message in three sections for the Message argument. You can use the MessageBox action to create a formatted error message similar to built-in error messages displayed by Microsoft Access. If you leave this argument blank, "Microsoft Access" is displayed. For example, you can have the title bar display "Customer ID Validation". The text displayed in the message box title bar. Click None, Critical, Warning?, Warning!, or Information. Click Yes (sound the beep tone) or No (don't sound the beep tone). Specifies whether your computer's speaker sounds a beep tone when the message displays. You can type up to 255 characters or enter an expression (preceded by an equal sign). Enter the message text in the Message box in the Action Arguments section of the Macro Builder pane. The MessageBox action has the following arguments. When a control or record fails a validation condition in the macro, a message box can display an error message and provide instructions about the kind of data that should be entered. For example, you can use the MessageBox action with validation macros. You can use the MessageBox action to display a message box containing a warning or an informational message.
