D
Dave
I have four controls on a report the first called: One, Second, Third and Fourth. This is how they are supposed to work
One needs to diplay a back color of Green if the value is >= 94% and Orange if the value is < 94
Second needs to diplay a back color of Green if the value is >= 97% and Orange if the value is < 97
Third needs to diplay a back color of Green if the value is >= 80% and Orange if the value is < 80
Fouth needs to diplay a back color of Green if the value is >= 75% and Orange if the value is < 75
However, the only control that seems to change colors is One, the others do not. Any ideas why that may be
The code sits in the "Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)". Should this change
Below is the sample code as it is is now
If Me![txtFirst].Value >= 95% The
Me![txtFirst].BackColor = 425958
Me![txtFirst].ForeColor = vbWhit
Me![txtFirst].FontBold = Tru
ElseIf Me![txtFirst].Value < 95% The
Me![txtFirst].BackColor = 422732
Me![txtFirst].ForeColor = vbGree
Me![txtFirst].FontBold = True
End I
If Me![txtSecond].Value > "97.0%" The
Me![txtSecond].BackColor = vbGreen '425958
Me![txtSecond].ForeColor = vbBlu
Me![txtSecond].FontBold = Tru
ElseIf Me![txtSecond].Value < "97.0%" The
Me![txtSecond].BackColor = vbYellow '422732
End I
If Me![txtThird].Value >= 80% The
Me![txtThird].BackColor = 425958
ElseIf Me![txtThird].Value < 80% The
Me![txtThird].BackColor = 422732
End I
If Me![txtFourth].Value >= 75% The
Me![txtFourth].BackColor = 425958
ElseIf Me![txtFourth].Value < 75% The
Me![txtFourth].BackColor = 422732
End I
Any ideas or code corrections will be appreciated.
Thanks,...
One needs to diplay a back color of Green if the value is >= 94% and Orange if the value is < 94
Second needs to diplay a back color of Green if the value is >= 97% and Orange if the value is < 97
Third needs to diplay a back color of Green if the value is >= 80% and Orange if the value is < 80
Fouth needs to diplay a back color of Green if the value is >= 75% and Orange if the value is < 75
However, the only control that seems to change colors is One, the others do not. Any ideas why that may be
The code sits in the "Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)". Should this change
Below is the sample code as it is is now
If Me![txtFirst].Value >= 95% The
Me![txtFirst].BackColor = 425958
Me![txtFirst].ForeColor = vbWhit
Me![txtFirst].FontBold = Tru
ElseIf Me![txtFirst].Value < 95% The
Me![txtFirst].BackColor = 422732
Me![txtFirst].ForeColor = vbGree
Me![txtFirst].FontBold = True
End I
If Me![txtSecond].Value > "97.0%" The
Me![txtSecond].BackColor = vbGreen '425958
Me![txtSecond].ForeColor = vbBlu
Me![txtSecond].FontBold = Tru
ElseIf Me![txtSecond].Value < "97.0%" The
Me![txtSecond].BackColor = vbYellow '422732
End I
If Me![txtThird].Value >= 80% The
Me![txtThird].BackColor = 425958
ElseIf Me![txtThird].Value < 80% The
Me![txtThird].BackColor = 422732
End I
If Me![txtFourth].Value >= 75% The
Me![txtFourth].BackColor = 425958
ElseIf Me![txtFourth].Value < 75% The
Me![txtFourth].BackColor = 422732
End I
Any ideas or code corrections will be appreciated.
Thanks,...