Results 1 to 3 of 3
  1. #1
    JustTrying is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    2

    Color Coding on an Unbound List Box

    I have an unbound list box displaying records from a query on one of my forms. There are 7 columns, one of which is an IIF date diff function leading to one of three outcomes. Based on the calculated outcome, I would like it to be colored, either the entire record in the box or simply the calculated field. I know conditional formatting should take care of this, but it is grayed out. Is there any way I can make this happen?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    AFAIK, cannot color code listbox items by any means. Conditional Formatting is available only with textbox. Can have a textbox display values from each of the listbox columns by referencing listbox column index. Index begins with 0.

    =
    [listboxname].[Column](x)
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You could use a Subform (in Datasheet View) instead of a Listbox, and format it to look like a Listbox. You could then do your Conditional Formatting, and any other manipulation you need do with the data.

    Linq ;0)>

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

Similar Threads

  1. Replies: 9
    Last Post: 11-06-2014, 01:15 PM
  2. Replies: 10
    Last Post: 09-08-2014, 06:07 PM
  3. Replies: 16
    Last Post: 12-02-2013, 06:20 AM
  4. Change Font Color of Selected List Box Item
    By buckwheat in forum Access
    Replies: 2
    Last Post: 06-03-2013, 03:46 PM
  5. Unbound list box
    By waseemthonse in forum Forms
    Replies: 1
    Last Post: 11-02-2010, 07:36 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