G'Day Fellas
I have exactly the same requirements (i think) as Mike. I have a form that will contain a detail section to return quite a few records. What I am trying to achieve is one colour per row based on a value returned in each row.
Background:
Each record represents a customer request
Depending on the whether the request has been completed, responded to or simply plain forgotten, (and this will be determined by a difference in two dates), I would like to colour the entire row (which contains a number of textboxes) a certain colour. ie If the request has just been received and is within the response time (ie 5 days), then I'd colour this row green. On the other hand, if the request had been received two months ago and someone simply failed to respond to it, i would like to colour this entire row red.
Esentially, the users will be able to open the form and dbl click on a record to open the item.
I'd really like to know what your solution was because I've tried the following:
the detail section contains a number of txtbox controls pulled from the field list. I got rid of the labels associated with them.
I've strung them across the detail section.
On the form_open event, I set the width of the first control to cover all the other controls. In the designer, I "sent to front" all of the other controls in the detail section and sent to back the first control.
Likewise, I also set the properties of the other controls to transparent.
Problem is, I need to write some logic to test "each record" for its value that will determine its background colour. Can I do this in the form_open event or what?...
thanks kindly
Grant Williams
Australia
|