Results 1 to 4 of 4
  1. #1
    salisbut is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    52

    Bolding a record in a field that is the max


    Pretty sure this is not possible but I thought I would ask. Is there a way to bold one record in a field in a query? Instead of having the maximum show up in the totals row, I would like to bold the maximum value in a column. Is this possible? I there some function out there that bolds text?

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    Well not in a query. But in a form, which is sourced on that query, you may be able. Conditional Formatting is a standard offering you will see for a form when in design view. Its not a feature I much use - so I don't have advice at my finger tips. But definitely it is where to look. On the otherhand if you think a report is more appropriate than a form - it also may be viable. One can probably toggle font during the OnFormat event.

    Sorry am not of more help at the moment.

  3. #3
    salisbut is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    52
    Ah shoot ok so if I were to create a subreport in a report that was a query it seems that I could not bold the max in a certain field. Ok this is what I thought. Thanks for the help though.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    It's certainly possible (in a form or report, not directly in a query). The trick is to identify the max value. A couple of ways come to mind. If you have a single max value, you could put a textbox on the form that finds it:

    =Max(FieldName)

    Then use that in Conditional Formatting. If you have a max per group or something, I'd probably have a query that found the max for each group, join that to the main query, and create a calculated field that identified the matching record, then use that in Conditional Formatting.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Populate field from field on previous record
    By randolphoralph in forum Forms
    Replies: 7
    Last Post: 03-04-2011, 11:28 AM
  2. Allow change to a field on new record only
    By Grooz13 in forum Forms
    Replies: 4
    Last Post: 08-16-2010, 11:36 AM
  3. Select a certain field of a record based on ID
    By cesarone82 in forum Access
    Replies: 3
    Last Post: 06-06-2009, 01:16 PM
  4. Replies: 5
    Last Post: 03-31-2009, 09:16 PM
  5. Replies: 1
    Last Post: 02-26-2009, 11:31 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