J
JB
Hello. I have an MS Access project where I have to programatically change
the background color of controls on a report. What I need to do on the
report is have the background of the header print in a particular color which
I will know up front. Then, on say the first group I need to change the
background color to a percent of the header background color (say 90%) and
then on a second group, I need to change the color again to be say 50% of the
header color and then one more time on another section to be say 30% of the
header color. So, I think I need to change the luminosity value in order to
generate a new hex number for this gradual 100%, 90%, 50%, 30% slide, but I
do not want to hard code this or figure these values out ahead of time and
store them. I want to be able to caculate these on the fly in the report. I
just want different shades of the header color for the different sections,
but do not know how to do this calculation on the fly. Thanks very much for
any help.
John
the background color of controls on a report. What I need to do on the
report is have the background of the header print in a particular color which
I will know up front. Then, on say the first group I need to change the
background color to a percent of the header background color (say 90%) and
then on a second group, I need to change the color again to be say 50% of the
header color and then one more time on another section to be say 30% of the
header color. So, I think I need to change the luminosity value in order to
generate a new hex number for this gradual 100%, 90%, 50%, 30% slide, but I
do not want to hard code this or figure these values out ahead of time and
store them. I want to be able to caculate these on the fly in the report. I
just want different shades of the header color for the different sections,
but do not know how to do this calculation on the fly. Thanks very much for
any help.
John