Dear Ingrid,
If you are using Access 2000, you could try and use the ListView Control instead, this gives you the sort of functions you are looking for.
I used one recently to display messages to the user on a form and these message can be any definable colour, the Control was called ListMessages and the code to display the messages looked like this:
If DateSerial(Year(Date), Month(Me.dob), Day(Me.dob)) > Date Then
Days2Birthday = DateSerial(Year(Date), Month(Me.dob), Day(Me.dob)) - Date
Else
Days2Birthday = Date - DateSerial(Year(Date), Month(Me.dob), Day(Me.dob))
End If
Debug.Print "day 2 Birth "; Days2Birthday
Me.ListMessages.ListItems.Clear
Set mListItem = ListMessages.ListItems.Add()
With mListItem
.Text = "Birthday in " & Days2Birthday & " Days"
.SmallIcon = "Birthday"
If Days2Birthday < 15 Then
.Bold = True
.ForeColor = vbRed
End If
End With
First the code works out the number of days to the person's birthday, then the ListView is cleared.
Next the ListView is set to Add and the item (Line in the ListBox) is added with the attributes of .Text (The text of the line)
If the Birthday is 15 days away or less, then the Line is displayed as Bold and Red
Hope this helps
Regards
Shaun