Results 1 to 6 of 6
  1. #1
    9944pdx is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2011
    Location
    PDX
    Posts
    44

    Queries - Removing <Div Tags>

    Hi there,

    I have a query field that looks like this:

    Table: [Notes] + " . " + [Location]

    Wanted Output: Removed Wheel. Portland



    Issue: Div Tag has been place around "Removed Wheel"

    Actual Output: <div>Remove Wheel</div>. Portland


    Thanks again for your support.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    well I'm pretty sure that 'Table' is a reserved word. So that's the first point.

    not sure I understand your post...but assuming you have a query, in query design - and are making a calculated field....let's change the name and syntax to this:

    NewTable: [Notes] & " . " & [Location]

    this presumes that [Notes] [Location] are field names from a table in the query design...and we're now using the non reserved NewTable name.....

    Hope this helps.

  3. #3
    9944pdx is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2011
    Location
    PDX
    Posts
    44
    You are correct I have a query, in query design with a calculated field.

    Your post helped and it works...but:

    When there is data in the [Notes] field and [Location] field I still receive the div tag.
    ex: PDX + <div>Wheel fell off car</div> How do I remove div tag?

    I don't see the div tag if the [Notes] field is empty.
    ex: PDX +

    Question:

    Do you think I should add an IF statement, so that if nothing appears in the [Notes] field then don't do anything?

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    I don't know what you mean by 'div tag' and where is that + symbol coming from?

  5. #5
    9944pdx is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2011
    Location
    PDX
    Posts
    44
    Something in the design query is addding div tags (shown below in quotes)

    ex: PDX +
    <div>
    Wheel fell off car
    </div>


    My question: what do I need to remove the div tags from being brought in to the output?

    Thanks for your help.

  6. #6
    9944pdx is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2011
    Location
    PDX
    Posts
    44
    Found the problem.

    Formatting issues:

    Right click Specified field>view property sheet>text format>change to Rich Text.

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

Similar Threads

  1. Assign Unique IDs to Multiple Tags
    By willbmisled in forum Queries
    Replies: 1
    Last Post: 02-02-2011, 10:11 PM
  2. Removing parameters
    By katrinanyc926 in forum Reports
    Replies: 1
    Last Post: 08-04-2010, 04:24 PM
  3. Another removing weekends question
    By catguy in forum Access
    Replies: 6
    Last Post: 08-03-2010, 07:59 AM
  4. HTML tags in memo field
    By sprovoyeur in forum Access
    Replies: 0
    Last Post: 05-11-2010, 01:33 PM
  5. tags and words in a row
    By bimfire in forum Access
    Replies: 0
    Last Post: 11-07-2007, 10:53 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