Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2002
    Posts
    5

    Question Unanswered: Insert Carriage Return into Text String?

    How do I insert a carriage return into a text string? And does anyone know of a list of these 'special characters' ?

    I am having a Message Box pop up with text in it, and want a carriage return between the values in the text string that will be displayed. Thanks in advance!

  2. #2
    Join Date
    Feb 2002
    Posts
    64

    Chr method

    Here's one way:

    MsgBox "Access Program File Location: " & Chr(13) & SysCmd(acSysCmdAccessDir)

  3. #3
    Join Date
    Aug 2002
    Posts
    5

    Cool

    Very cool, thanks!

  4. #4
    Join Date
    Feb 2002
    Posts
    2,232
    Try the following as well:

    msgbox strOne & vbCrLf & strTwo

  5. #5
    Join Date
    Feb 2002
    Posts
    2,232
    Look under the topic "Miscellaneous Constants" for a list of these special characters.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •