fat controller
Slightly round the bend..
- Local time
- Today, 20:52
- Joined
- Apr 14, 2011
- Messages
- 758
I have a report which is grouped on a field which shows a Day Type, and I would like the background colour of the group to be changed depending on the value that is in the field.
For example, if it says Saturday, I would like the background of that section of the report to be light green; if Sunday, light red/pink; if Boxing Day then amber.
Now, my brain is screaming at me that this should be code in the On Format event for the group header, but what that code should be I don't know?
Also, would it be better (to allow flexibility going forward) if I had a table which had a list of the day types and then the associated colour, be that colour stored as RGB or HEX?
For example, if it says Saturday, I would like the background of that section of the report to be light green; if Sunday, light red/pink; if Boxing Day then amber.
Now, my brain is screaming at me that this should be code in the On Format event for the group header, but what that code should be I don't know?
Also, would it be better (to allow flexibility going forward) if I had a table which had a list of the day types and then the associated colour, be that colour stored as RGB or HEX?