Results 1 to 3 of 3
  1. #1
    sjs94704 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Berkeley, CA
    Posts
    20

    Properties for a Listbox

    Are there property settings for the forecolor and font color of the selected item in a list box ?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    No. Row is highlighted when selected. The text color of selected row is the inverse of the ForeColor property. Don't understand what you want.

    Google: access listbox color rows
    Review:
    http://www.access-programmers.co.uk/...d.php?t=226478
    http://blogs.office.com/b/microsoft-...ist-boxes.aspx
    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 can do this kind of thing with Conditional Formatting with a Combobox, but not with a ListBox. If that alternative would work for you, in Form Design View:

    • Select the Combobox then go to Conditional Formatting and use
    • Expression Is
    • Not IsNull([YourComboBoxName])
    • Select the color formatting you want
    • Click on OK

    If you want the formatting to show immediately, instead of showing in reverse, as June7 explained it would, when a selection is made, you'd need to immediately move Focus elsewhere:

    Code:
    Private Sub YourComboBoxName_AfterUpdate()
     Me.AnyOtherControl.SetFocus
    End Sub


    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Replies: 1
    Last Post: 09-10-2012, 11:21 PM
  2. Replies: 1
    Last Post: 07-26-2012, 11:45 AM
  3. Replies: 7
    Last Post: 06-05-2012, 03:22 PM
  4. inherited properties
    By bginhb in forum Access
    Replies: 1
    Last Post: 03-10-2012, 08:42 PM
  5. What happened to my properties?
    By hertfordkc in forum Forms
    Replies: 1
    Last Post: 11-12-2011, 02:50 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