Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2005
    Posts
    113

    Unanswered: Two lines in msg-box

    How can I "break" a text-line in a msg-box? Greatful for an answer.

  2. #2
    Join Date
    Apr 2003
    Location
    Alabama, USA
    Posts
    154
    Msgbox "First Line" & vbNewLine & "Second Line"

    Hope that helps!

    Just FYI, with some limitations, you can even bold the msgsbox font.
    http://AccessDB.Info

    You live and learn. At any rate, you live. - Douglas Adams

  3. #3
    Join Date
    Jul 2004
    Location
    Edmonton, Canada
    Posts
    72
    strMsgBox = "1stLine" & Chr(13) & "2ndLine" works well too.
    Carl

  4. #4
    Join Date
    Nov 2005
    Posts
    113
    Super, thanks!

  5. #5
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    Quote Originally Posted by carlmal
    strMsgBox = "1stLine" & Chr(13) & "2ndLine" works well too.
    Carl

    well if we are on 'works well too kick....'

    strMsgBox = "1stLine" & vbcrlf & "2ndLine" 'works well too.

    BTW vbcrlf is probably another variant of the same function as vbnewline. I think offhand vbcflf came first and it was then renamed vbnewline, which probably makes it more readable

Posting Permissions

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