Results 1 to 11 of 11
  1. #1
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216

    Trouble with rich text format memo field

    I have a righ text format field which displays (what I think) are unprintable characters. It does not do this in the table, but it does on the form and report. I appreaciate any help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    How are the characters input to the data?

    Are the textboxes TextFormat property set to Rich?

    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.

  3. #3
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216
    Both the field in the table and the text box on the form are set to rich tex format. On the previous post, I copied the data from the internet. Below is text which I just typed into the text box on the form, then printed the report.

    <div>This text is typed into a text box on a form. &nbsp;&nbsp;The text box properties have been set at rich text.</div>

    The extra charcters do not show up on in the text box on the input form.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You copy/paste text from web page to field in table?

    Apparently, that causes input of characters/codes that Access doesn't handle well.

    &nbsp means Non-Breaking Space. Is this code what shows on the form/report in textbox when copy/paste but not when typed?
    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
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216
    I typed:

    "This text is typed into a text box on a form. The text box properties have been set at rich text."

    into the text box (without the quote marks). When the report prints, it print the following:

    <div>This text is typed into a text box on a form. &nbsp;&nbsp;The text box properties have been set at rich text.</div>

  6. #6
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    Could it be you are somehow mixing normal text with HTML codes?
    The <div> tag defines a division or a section in an HTML document. The <div> tag is used to group block-elements to format them with CSS.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    What do you see if you select the text from the website and paste it into Notepad?
    I agree that it seems you are getting html tags some how.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Just tested what you describe. The text displays properly in report because that textbox is also set to Rich Text. When I changed it to Plain Text, I get almost the result you describe. The div tags show but no &nbsp.
    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
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    mmmm, you may have to use VBA to examine the text and strip out any HTML tags, look for the < start html tag and > end html tag

    Many examples are available on the web, and here...

    https://www.accessforums.net/access/...orm-20804.html

    you can adapt this to also remove any other tags as well

  10. #10
    lawdy is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    216
    Ok, I did NOT have the texbox on the report set to rich text. I just change it to rich text, and it works correctly. Thank all of you

  11. #11
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    If you have found a solution please update the thread as solved using the thread tools at the top of the post.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-26-2013, 06:40 PM
  2. rich text memo field
    By jedder in forum Reports
    Replies: 1
    Last Post: 05-11-2012, 02:48 PM
  3. Access 2007 Memo Field Rich Text
    By EddieN1 in forum Access
    Replies: 2
    Last Post: 08-13-2011, 08:41 AM
  4. Set format of rich text field
    By silverspr in forum Programming
    Replies: 0
    Last Post: 03-28-2011, 09:07 AM
  5. Need help with Memo field text format
    By sprovoyeur in forum Access
    Replies: 1
    Last Post: 05-14-2010, 08:03 AM

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