I would like to be able to apply conditional formating to my report but am having trouble with the VBA code. What i would like to do is apply a condition to several Text boxes in the details section of my report. I want to be able to highlight in yellow the max value in each text box source (10 text box columns to be exact) and to highlight the min value to blue.
I have been able to right click on the text box and set each individual text box with the conditions:
value = Max([field1]) - back color yellow
value = Min([field1]) - back color blue
I would like to apply a vba code to each text box in case i need to change colors or add conditions. Can anyone suggest a simple vba code to do this?
I have been able to right click on the text box and set each individual text box with the conditions:
value = Max([field1]) - back color yellow
value = Min([field1]) - back color blue
I would like to apply a vba code to each text box in case i need to change colors or add conditions. Can anyone suggest a simple vba code to do this?