PRA: MsgBox Function Shows Only First 512 CharactersArticle ID: Q142732Creation Date: 17-JAN-1996 Revision Date: 20-SEP-1996
The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
When you try to display more than 512 characters in a message box by using
the MsgBox() function, the box sizes itself to be big enough to display
all of the characters you entered, but it only displays the first 512
characters. This is contrary to online Help, which states that the Msgbox()
function can display 1024 characters.
STATUS
This behavior no longer occurs in Microsoft Access for Windows 95 version
7.0. In Microsoft Access 7.0, you can display approximately 1024 characters
by using the MsgBox() function.
MORE INFORMATION
Steps to Reproduce Problem Option Explicit
MsgBox z 'Display the String.
End Function ? MBLT() Note that when the message box opens, it is big enough to display 1024 characters. However, it displayes only the 512 a's. No b's, are displayed. |
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.