Results 1 to 14 of 14
  1. #1
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20

    <div> tags showing in form data

    I have a form with a table in it, that is populated by a query. It all displays ok excerpt for one colum that has <Div> on either side of the data. What have i done wrong.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Form is bound to a table but the table is populated by a query? Why?

    Show the sql statement of the query for analysis.
    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
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20
    sql =

    SELECT [Expense Report Extended].*
    FROM [Expense Report Extended];

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You are appending records to the same table as the source data? Still don't know the why.

    Simple enough sql and don't see cause for the issue.

    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
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20
    The form is "Expense Form List"

    test.zip

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    There is a form called "Expense Reports List". I see the issue on that form.

    The Display Location field in Expense Reports table is a memo type and it is set as Rich Text format. Change it to Plain Text and the tags go away.
    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
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20
    Thanks so much for your help.. I never would have found that!
    Also on that same form "Expense Reports List" i want to be able to click on ID & the form with that information in it.
    But i can't get it to popup the first form.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You have code in the Expense Report Detail form Open event that goes to a new record. With that in place the form will never open to an existing record.
    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
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20
    That code is there so when you open a new form that is is a blank form... Is there another way around this?

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Since you have an Autoexec open the form by default when the db opens, set the Autoexec to open the form to new record. Set the Data Mode argument to Add.

    Remove the Open event code.

    Now the form has versatility to be used for existing and new records.
    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.

  11. #11
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20
    Many Thanks for your help... one last question please.
    On "Expense Report Detail" form when i print preview to pdf i get more than one record on the print preview.
    How can i stop that?

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If you want the output to be for only one Expense report then need to filter the report.
    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.

  13. #13
    bar891 is offline Novice
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    20
    i don't know how to filter the report... I have tried many different ways but i can't get it to work.. can you point me in the right direction?

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Options:

    1. parameterized query, review http://datapigtechnologies.com/flash...mtoreport.html

    2. Code (VBA or macro) to set filter criteria in DoCmd.OpenReport method, example:
    DoCmd.OpenReport "Expense Report Detail", , , "ID=" & Me.ID
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-13-2013, 03:52 PM
  2. Form not showing entered data
    By ashu.doc in forum Forms
    Replies: 8
    Last Post: 01-27-2013, 07:49 PM
  3. Replies: 4
    Last Post: 12-14-2012, 03:42 PM
  4. Replies: 4
    Last Post: 02-27-2012, 10:29 AM
  5. Data is not showing up in the form
    By zuerin in forum Access
    Replies: 1
    Last Post: 07-13-2011, 09:16 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