Results 1 to 9 of 9
  1. #1
    Jerry8989 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    27

    Question Line Return escape character

    Within access is there an escape character for line return?

    I'm joining two text fields together. When I display them in a text box on a different form I want line1 to be on top of line 2

    for example.
    textbox1 has "HELLO" and textbox2 has "GOODBYE"
    I need to take these two strings concatenate them and put them in a row in a table then when I display it within a form multiline textbox I want it to display like this
    HELLO
    GOODBYE



    Thanks for any help

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try:
    [TextField1] & " " & vbCrLf & [TextField2]

  3. #3
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Or you can use vbNewLine as well

  4. #4
    Jerry8989 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    27
    I got it working using chr(13) & chr(10). Should I change it too vbCrLf or vbNewLine?
    Is there any advantages to those two options?

    Thank you to both for your replies

  5. #5
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    There is no real difference, its just easier to write, (less keypresses)

    David

  6. #6
    Jerry8989 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    27
    David,
    Thanks for the reply

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So are you ready to use the Solved thread tool on this thread yet?

  8. #8
    Jerry8989 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    27
    Quote Originally Posted by RuralGuy View Post
    So are you ready to use the Solved thread tool on this thread yet?

    Yes, How should I go about doing this?

    Thank You

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just follow the link in my sig.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Anything wrong with this one line of code?
    By alsoto in forum Reports
    Replies: 3
    Last Post: 07-01-2009, 09:23 AM
  2. filter by the number of character
    By bangemd in forum Access
    Replies: 1
    Last Post: 06-30-2009, 10:33 AM
  3. Line-Bar Chart Issue
    By santoshpk in forum Reports
    Replies: 0
    Last Post: 03-17-2009, 02:47 PM
  4. Design In-Line Function ???
    By caljohn527 in forum Queries
    Replies: 0
    Last Post: 01-28-2009, 03:48 PM
  5. line skip in bookmarks
    By emilylu3 in forum Programming
    Replies: 0
    Last Post: 03-21-2006, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums