Results 1 to 9 of 9
  1. #1
    sren is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    36

    Report Design - Text Box with Paragraphs

    Hi....I have encountered a couple of questions that seem to have left me puzzled even though I was not expecting it to be difficult.

    I am working on a report that will print a letter. I want my text box to be formatted like a paragraph. When setting up an email to send and going through code builder, I have previously used the chr(10) and chr(13) (is what I think they were) to do indents and carriage returns. I can not seem to get any of this to work inside the text box. This is what I currently have (although I have had this about 10 different ways trying to get it to work):
    =IIf([Region]="EU",[txt_C_EU_MainLetter],[txt_C_nonEU_MainLetter]) & " We appreciate your support and wish you every success for " & [ctlNextYr] & "."

    I want it to look like this when printed:
    Text from [txt_C_EU_MainLetter] or [txt_C_nonEU_MainLetter]
    <blank line>
    We appreciate your support and wish you every success for xxxx.
    Any suggestions? I would like to be able to do everything inside one text box.

    Thanks so much,


    sren

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    This works for me.
    =IIf([Region]="EU",[txt_C_EU_MainLetter],[txt_C_nonEU_MainLetter]) & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "We appreciate your support and wish you every success for " & [ctlNextYr] & "."
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    sren is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    36
    This does not seem to be working. Everything works fine until the Chr(13), then it seems to ignore the remainder of the statement. Any additional thoughts or suggestions? Thanks.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    I can't replicate the issue so if you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    sren is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    36
    Thank you. I will keep working on it; it will be extensive to create the db without the confidential data....basically, nothing will work. I appreciate your time.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Test the expression without the fields, just with literal text. Will the cr lf code work then?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    sren is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    36
    I finally figured it out....I was missing the "$". I had "Chr(13)" instead of "Chr$(13)" etc. It works great now. Kindest regards!

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Any idea why the $ needed?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    sren is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    36
    No. I did not realize it could be required. I kept searching online for any tips and articles and finally came across one that indicated in some situations, the "$" may be required. (I am now understanding that this used to be a factor but should no longer figure in any longer.) Regardless, it now works (from what I can tell). Thanks for the feedback and assistance.

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

Similar Threads

  1. Report Design
    By cbrsix in forum Reports
    Replies: 2
    Last Post: 06-27-2012, 07:10 AM
  2. Replies: 1
    Last Post: 06-04-2012, 04:31 PM
  3. Format of Report Design
    By coolpal9 in forum Reports
    Replies: 1
    Last Post: 02-07-2012, 01:17 PM
  4. Replies: 1
    Last Post: 10-28-2011, 01:57 PM
  5. 07 Report Design; Grrrrr
    By cassidym in forum Database Design
    Replies: 3
    Last Post: 08-09-2010, 06:48 AM

Tags for this Thread

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