Results 1 to 2 of 2
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,185

    Converting Text Box Data

    Hi Guy's, hope everyone is well.



    Bit of a long shot, unsure if there is an easy method or not ?

    I have a text box on screen, there maybe 8 paragraphs in the text box, i may also add something from a table to either add paragraphs or change using Instr and Replace functions

    There may well be around 300 paragraphs stored in a table (this is to adjust the paragraphs) according to combo selection

    Regardless, if there are 4-8-24 paragraphs in the text box, i can add this to email.Body

    If i am going to add to HTML.Body, it comes up with all paragraphs as 1 line, I understand I need something use replace function but rather than check all data for a character to find and replace with "<br>" to generate line feeds for HTML, is there an easy method to send an email with all paragraphs to HTML without searching and/or adding characters such as

    Pipes
    Hash
    FullStop
    Uppercase
    etc...

    I am trying to prevent going through a table with hundreds of paragraphs to add a Pipe/Hash or whatever to use the replace function

    Hope this all make sense

    There could be a website link on there so using full stops wouldn't work as it would put .com etc on a new line

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Don't know but maybe if your field was memo (long text) and formatted as rtf the rtf tags would carry over to the email body. My guess is that you're trying to make a memo field act like a Word document. Maybe instead of 1,000 words you should have 50 records or similar?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-23-2020, 12:48 AM
  2. Converting text data to Hyperlink
    By jcc285 in forum Programming
    Replies: 14
    Last Post: 05-30-2019, 11:42 AM
  3. Converting Text to Single
    By sibe in forum Access
    Replies: 5
    Last Post: 08-24-2018, 03:17 AM
  4. Converting a Code to Text
    By rmcafee in forum Programming
    Replies: 7
    Last Post: 09-13-2011, 08:52 PM
  5. Converting Option value to text
    By James3mc in forum Forms
    Replies: 4
    Last Post: 11-28-2009, 11:19 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