
|
Message Text Wrapp When you need to display a message, you probably use the MsgBox() function. Unfortunately, you can't control how Access displays it. For instance, if your message is long, Access, not you, determines where to wrap it. However, you can take back control using the Chr() function. To experiment, simply open the Debug window (the Immediate window in version 2.0), enter the statement MsgBox("This message is too long so" & Chr(13) & "we added a Chr(13) function to wrap the text.") and then press Enter. Access returns a message box displaying two lines of text. Furthermore, the Chr(13) function inserts a line break between the words "so" and "we." Without this function, Access, not you, decides whether and where to wrap the text.
|
||||
| Tips Index | ||||
![]()