Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to highlight rows in a listbox

Status
Not open for further replies.

dhboston

Technical User
Oct 23, 2001
10
US
I have a listbox returning rows of data. The data is listed with a month and date field. Does anyone know how to highlight or bold the row of data when the month = December?
 
I don't think you can bold a particular selection in listbox, but take a look at the SubformDemo2K download at
It's got subform examples made to look like listboxes with the type of features you're looking for

HTH
 

this is probably not exactally what you want but this code will hightlight-select the ones who have a month of December

Dim x As Integer
For x = 0 To List1.ListCount - 1
If Month(List1.Column(0, x)) = 12 Then
Me.List1.selected(x) = True
End If
Next x

the first column (0) contains the date field if yors is in a diffrent column change to reflect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top