When you want to display a brief message, such as a warning, you can use a predefined dialog box called a message box. You can display a message box by adding the MsgBox action to a macro or by adding the MsgBox function to a Microsoft Visual Basic procedure.
Use a macro
How?
Use Visual Basic code
How?
In the Database window, click Modules under Objects, and then click New on the Database window toolbar.
Sub ShowEvent(EventName As String)
For example, the following assignment statement runs the MsgBox function, displaying a message, and assigns the value returned by the function to the variable RetValue:
RetValue = MsgBox("Continue?", vbOKCancel)