Results 1 to 3 of 3
  1. #1
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144

    Change Font Color of Selected List Box Item

    My list box will be used to populate a form, is it possible that once the item is dble-clicked, it reverts to a different color to let the user know it has already been selected once or can the row be locked once it has been selected?

  2. #2
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742

    One possible method

    There's probably a more elegant way to do it, but one alternative is to (1) load a temporary table with the list items, and a second column that represents whether they have been visited (2) load the listbox with those two columns, the second one hidden (3) use code like on this page to set the formatting of the first column elements based upon the value of the second column, (4) change the temp table and requery after each use.

    http://p2p.wrox.com/access/68942-conditional-formatting-listbox-refining.html

    You could do the same thing without the temp table. This method would allow you to do some analysis before you load the list box, and set values in advance depending on your application needs.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

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

Similar Threads

  1. Change font color in Query
    By Brian62 in forum Queries
    Replies: 2
    Last Post: 01-10-2013, 09:14 PM
  2. Change font color in subform
    By rtrinidad in forum Forms
    Replies: 1
    Last Post: 11-04-2012, 01:42 PM
  3. Change color font when updating data?
    By Mike1379 in forum Reports
    Replies: 3
    Last Post: 05-17-2010, 08:00 AM
  4. Change as per condition font color
    By miziri in forum Programming
    Replies: 1
    Last Post: 08-20-2009, 04:23 AM
  5. Color/font change in subform
    By AndyKim in forum Forms
    Replies: 9
    Last Post: 06-24-2009, 04:34 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