Results 1 to 6 of 6
  1. #1
    kdbailey is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    228

    Listbox Changes BackColor When Selected

    I have an interesting situation going on that I just cannot figure out. I have a listbox that only changes to the backcolor that I select when I am focused on the listbox. As soon as I focus on a different control the color changes. When I focus back on the listbox, the color changes back again.

    Can anybody shine some light on whatever property may be causing this?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  3. #3
    kdbailey is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    228
    There's only one event in which code is run which is completely unrelated.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please post a copy of the database ===compact and Repair, then zip.
    Remove anything confidential/private

  5. #5
    kdbailey is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    228
    Before going to that length, it looks like whatever the backcolor of the form is is what it is turning to when not focused. For instance...

    If the form is green and the listbox is white...
    -when focused on the listbox it appears white
    -when not focused​ on the listbox, it is green

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    There's only one event in which code is run which is completely unrelated.
    If the form is green and the listbox is white...
    -when focused on the listbox it appears white
    -when not focused​ on the listbox, it is green
    ??? Something must be causing the change???

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

Similar Threads

  1. ListBox Selected Record
    By bahalzamon in forum Access
    Replies: 4
    Last Post: 08-04-2015, 03:12 PM
  2. Listbox.Selected not working
    By Dave D in forum Programming
    Replies: 11
    Last Post: 07-16-2014, 02:14 PM
  3. listbox column head format backcolor
    By masoud_sedighy in forum Programming
    Replies: 3
    Last Post: 07-31-2013, 07:44 PM
  4. Replies: 3
    Last Post: 02-13-2012, 08:14 AM
  5. Selected items in listbox
    By tomodachi in forum Access
    Replies: 1
    Last Post: 09-09-2010, 01:14 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