Results 1 to 5 of 5
  1. #1
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295

    Lookup returns unwanted HTML tags

    Good Day all.
    This code below return the correct string but with the HTML tags which are not in the original text

    Function GetListDescription(lProductID As String) As String

    GetListDescription = DLookup("[Description]", "Products", "[ID] = " & lProductID)




    End Function


    This is the output:

    <div>Large Chair</div>

    Can anyone explain this phenomenon?

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    sounds like your field is a memo field - change it to a text field

  3. #3
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295
    Thanks for the intervention.

    I tried it but it limits the size of the entries. I wanted to enter much more data.

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    OK - then leave as a memo field and change the text format to plain text

  5. #5
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295
    Thanks. That works.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-24-2013, 05:14 PM
  2. Export to html AccessTemplate tags
    By starhawk85 in forum Import/Export Data
    Replies: 1
    Last Post: 04-30-2012, 10:30 AM
  3. Replies: 5
    Last Post: 12-21-2011, 07:16 PM
  4. SendObject - HTML tags in 'To' field
    By Hello World in forum Forms
    Replies: 1
    Last Post: 10-20-2011, 02:31 PM
  5. HTML tags in memo field
    By sprovoyeur in forum Access
    Replies: 0
    Last Post: 05-11-2010, 01:33 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