Hi all,

I have a ListBox on an Access 2003 form. It has a custom callback function for Row Source Type. Here is the final part of the function:
VB Code:
  1. Case acLBOpen
  2. Data = Timer          ' Unique ID.
  3. Case acLBGetRowCount
  4. Data = TotalDates + 1
  5. Case acLBGetColumnCount
  6. Data = 21
  7. Case acLBGetColumnWidth
  8. Data = -1            ' Use default width.
  9. Case acLBGetValue       ' Get the data.
  10. Data = ARow(Row, Col)
  11. Case acLBGetFormat
  12. Data = "#[Green];;""-"";""-"""
  13. End Select
ARow is an array holding data. The first column is a date, the rest are numbers. If a number is zero, I change it for the dash (that part works OK). What I'd like to do is to make all Fridays of green color. In the code above, I am trying to use the format which works great in text fields on a form. Somehow, it doesn't work in this situation.

Help!

Thanks!