Line/Carriage Return in Access Report Text Box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dee Brooks
    New Member
    • May 2007
    • 4

    Line/Carriage Return in Access Report Text Box

    Hello,

    I'm using Access 2002 to create a text box that will contain the following information in this format:

    Name
    Title
    Company
    City, State
    email

    I entered the following expression in a text box:

    =[FULL_NAME] & Chr(10) & Chr(13) & [TITLE] & Chr(10) & Chr(13) & [COMPANY] & Chr(10) & Chr(13) & [CITY_STATE] & Chr(10) & Chr(13) & [EMAIL]

    This is the result of the expression:

    Name   Title   Company   City, State   email

    I've tried using Chr(10) only and Chr(13) only, but I still cannot get each field to appear on a separate line. Does anyone have any suggestions.

    Thanks!
  • JConsulting
    Recognized Expert Contributor
    • Apr 2007
    • 603

    #2
    Originally posted by Dee Brooks
    Hello,

    I'm using Access 2002 to create a text box that will contain the following information in this format:

    Name
    Title
    Company
    City, State
    email

    I entered the following expression in a text box:

    =[FULL_NAME] & Chr(10) & Chr(13) & [TITLE] & Chr(10) & Chr(13) & [COMPANY] & Chr(10) & Chr(13) & [CITY_STATE] & Chr(10) & Chr(13) & [EMAIL]

    This is the result of the expression:

    Name   Title   Company   City, State   email

    I've tried using Chr(10) only and Chr(13) only, but I still cannot get each field to appear on a separate line. Does anyone have any suggestions.

    Thanks!

    try using vbLf in place of chr(10) & Chr(13)

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #3
      Originally posted by Dee Brooks
      Hello,

      I'm using Access 2002 to create a text box that will contain the following information in this format:

      Name
      Title
      Company
      City, State
      email

      I entered the following expression in a text box:

      =[FULL_NAME] & Chr(10) & Chr(13) & [TITLE] & Chr(10) & Chr(13) & [COMPANY] & Chr(10) & Chr(13) & [CITY_STATE] & Chr(10) & Chr(13) & [EMAIL]

      This is the result of the expression:

      Name   Title   Company   City, State   email

      I've tried using Chr(10) only and Chr(13) only, but I still cannot get each field to appear on a separate line. Does anyone have any suggestions.

      Thanks!
      =[FULL_NAME] & vbCrLf & [TITLE] & vbCrLf & [COMPANY] & vbCrLf & [CITY_STATE] & vbCrLf & [EMAIL]

      Comment

      Working...