You can use the MsgBox function in Microsoft Access to create a formatted error message similar to built-in error messages displayed by Microsoft Access.
Note In Acc9TBD, this function does not permit you to separate a string into sections with the at sign (@).
The following example displays a formatted dialog box with a sectioned string.
MsgBox "Wrong button!" & chr(13) _
& "This button doesn't work." & chr(13) –
& "Try another.", vbOKOnly + vbExclamation
Note To display a message box without an icon in Microsoft Access, simply omit any constant that would denote an icon, or supply a value of zero for the buttons argument, as in the following example.
MsgBox "No icons included.", 0