Hi,
I'm trying to create a report within Microsoft Access 2000 and I would like to change the background colour of a box within a report based on the value returned.
The box is named "Progress_Percentage_Complete". Values in this box can range from 0 to 100. I am wanting the background colour to change as follows.
If value is 0 to 39 = red
40 to 59 = orange
60 to 79 = yellow
80 to 99 = light green
100= dark green
I gather that this can be done in VBA. However, I have very little experience in this area and wondered if anyone knows what code I would use to achieve the colour coding as detailed above. Also, where would I place this code within the report. Will it be found somewhere in the 'properties' of the Progree_Percentage_Complete Box?
Any help you can offer will be greatly appreciated!
Many thanks,
Owain.

I'm trying to create a report within Microsoft Access 2000 and I would like to change the background colour of a box within a report based on the value returned.
The box is named "Progress_Percentage_Complete". Values in this box can range from 0 to 100. I am wanting the background colour to change as follows.
If value is 0 to 39 = red
40 to 59 = orange
60 to 79 = yellow
80 to 99 = light green
100= dark green
I gather that this can be done in VBA. However, I have very little experience in this area and wondered if anyone knows what code I would use to achieve the colour coding as detailed above. Also, where would I place this code within the report. Will it be found somewhere in the 'properties' of the Progree_Percentage_Complete Box?
Any help you can offer will be greatly appreciated!
Many thanks,
Owain.