S
Silvio
I would like to run a code (if...then...else) based on conditional
formatting. MS Access conditional formatting will turn RED my field back
color if the value in it is >10 (This works fine). Then I have a button that
on-click will check each field in my form to see if any filed is red because
of the conditional formatting formula, and if that is the case, run another
line of code. The problem I am having is that my code does not appears to
detect the color even though I can see it (Red field)
My code:
if [frmCalibration2].Form![frmOxygen1].Form![Difference].BackColor = 255 then
do this..
else
do that
end if
What I am doing wrong? Color-code for the red in conditional formatting is
255, correct? is .BackColor what I need to check?
Thank you,
Silvio
formatting. MS Access conditional formatting will turn RED my field back
color if the value in it is >10 (This works fine). Then I have a button that
on-click will check each field in my form to see if any filed is red because
of the conditional formatting formula, and if that is the case, run another
line of code. The problem I am having is that my code does not appears to
detect the color even though I can see it (Red field)
My code:
if [frmCalibration2].Form![frmOxygen1].Form![Difference].BackColor = 255 then
do this..
else
do that
end if
What I am doing wrong? Color-code for the red in conditional formatting is
255, correct? is .BackColor what I need to check?
Thank you,
Silvio