Conditional Formatting (1 Viewer)

nick5196

Registered User.
Local time
Yesterday, 17:50
Joined
Feb 17, 2011
Messages
43
I have a subtable containing a name and a percentage (score). I would like all of the percentages above the average to be green and those below the average to be red. I have tried "field is greater than Davg" however this proved unsuccessful.

Could anyone tell me the expression

Thanks
Nick
 

nick5196

Registered User.
Local time
Yesterday, 17:50
Joined
Feb 17, 2011
Messages
43
i didnt use an i expression, just selected field is greater than from the combos. Then typed Davg.
Im a novice...so not too sure about the expression.
 

smig

Registered User.
Local time
Today, 03:50
Joined
Nov 25, 2009
Messages
2,209
put the avarage in a field on the header/footer and compare to this field
 

vbaInet

AWF VIP
Local time
Today, 01:50
Joined
Jan 22, 2010
Messages
26,374
put the avarage in a field on the header/footer and compare to this field
So there you have it from smig. The conditional format will be:
Code:
[COLOR=Blue][B]Expression Is[/B][/COLOR] [txtBoxToCompare] > [txtBoxInHeader/Footer]
where [txtBoxToCompare] is the name of the textbox bound to the percentage field and [txtBoxInHeader/Footer] is the textbox that contains the Average, i.e. =Avg([PercentageField]).
 

Users who are viewing this thread

Top Bottom