How to highlights the current record on listbox

Falcon88

Registered User.
Local time
Today, 08:30
Joined
Nov 4, 2014
Messages
306
Hii all dears

I have a form that displays single records of a data.
On that form there a list box to show the dates of current patient visits .
My question: how to highlight the date (on the listbox) of the current visit of that patient ?
 
Do you mean like "select" that item on the ListBox?
 
Look through this post.


Not sure if this will do what you want, but the discussion in the linked thread sounds about right.
 
I meant:
How do I make the current record on the listbox highlighted in a different color than the rest of the displayed items?
 
A standard Access listbox cannot do color formatting. You can use a listview, but these are hard to work with ActiveX controls. The easier is to fake a listbox with a subform.
 
Sorry. I've only just seen this thread
The selected item in a listbox is automatically highlighted. No code or action needed! For examnple

1699782793724.png


However it higlights all field in that listbox record
Am I missing something in the question asked?
 
What does it look like when the focus is on another control?
Providing the listbox row is clicked, it looks exactly the same. The record is still selected.

This particular listbox also works for a mouse move.
Of course, using a mouseover event is transitory. The 'selection' is lost when the mouse is moved away
 
Last edited:

Users who are viewing this thread

Back
Top Bottom