Results 1 to 4 of 4
  1. #1
    Hank153 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Dec 2012
    Posts
    19

    Highlight Parameter value in report

    I have a report based on a query that has the same parameter value criteria in several fields : Like "*" & [Enter any part of Name:] & "*"
    How can I highlight the requested parameter in the report fields. It does not matter how the highlight is done (normal yellow highlight or color the font differently).
    Example: My parameter value is "Wil". The report will show "Wilson, Williams, William, etc. I would like the "Wil" to stand out in the report.



    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I NEVER use input parameter prompts in query filter criteria. The input value is not available for further reference.

    Use an unbound control (textbox, combobox, listbox) on form for input of filter criteria. Reference the control as parameter in the query. Then the control can be referenced from the report. A textbox ControlSource can reference the form control. Use textbox ConditionalFormatting. However, can't make just the "Wil" part of data highlighted. It is all or nothing.
    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
    Hank153 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Dec 2012
    Posts
    19
    Ok, I have a form with a unbound text box. How do I use conditional formatting to make the word containing the parameter stand out? i.e. - if "wil" is the parameter value - how can I make "Wilson", "Williams" etc stand out? Or do you mean all the data in the report must be highlighted?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Should be able to use textbox ConditionaFormatting to highlight the field if it contains 'Wil'. http://office.microsoft.com/en-us/ac...005269166.aspx

    Condition 1: Expression Is [fieldname] LIKE "*" & Forms!formname!textboxname & "*".
    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. how to add a parameter to a report
    By claudia_lovez_u in forum Reports
    Replies: 2
    Last Post: 12-19-2012, 04:26 AM
  2. How to highlight cell in subtable
    By togo in forum Access
    Replies: 16
    Last Post: 10-02-2012, 02:46 PM
  3. Highlight key search result
    By uronmapu in forum Access
    Replies: 28
    Last Post: 06-17-2012, 09:32 AM
  4. Can I highlight the line a median value is on?
    By MichealShinn in forum Reports
    Replies: 2
    Last Post: 05-24-2012, 01:42 PM
  5. Replies: 2
    Last Post: 12-07-2010, 03:51 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