The information in this article applies to:
SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
MORE INFORMATION
For example, if you had the message
and, you wanted the message to be displayed as
you would enter the message as a string expression with the following syntax in either a macro or in code: In a Macro ---------- Action NOTE: You must use the equal sign (=) with the MsgBox action to tell the action that you are using a string expression as the message argument. In Code ------- MsgBox "Notice:" & Chr(13) &Chr(10) & "This is an Important Message!" NOTE: When using the MsgBox statement or MsgBox() function in code, you do not need the equal sign before the message because this statement/function expects a string expression as the message argument. NOTE: While this code sample works fine in Microsoft Access 7.0 and 97, you can also use the Visual Basic constant vbCrLf in place of Chr(13) & Chr(10) in this code sample. The line of code would then read as follows: MsgBox "Notice:" & vbCrLf & "This is an Important Message!" Additional query words: multiline
Keywords : kbusage McrArg |
Last Reviewed: March 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |