Conditional Formatting question

katekaew

Registered User.
Local time
Yesterday, 22:10
Joined
Jan 19, 2005
Messages
19
I use this to calculate my percentage.
PerCent: IIf(IsNull(Sum([TotalEachOption]/[TotalCount])),"0.0%",Format((Sum([TotalEachOption]/[TotalCount])),"0.0%;-0.0%;0%"))

I get the result but it's a text data type. I try to use Conditioanl Formatting if > 70% is green and < 30% is red but it's mixed up between "7%" and 70% and 7%. Both percentage get the same color.

How to solve this problem?

Thanks!
 
I don't use format(). I calculate and make the table then change the datatype of my fields from text to double and use format as percentage instead. Now, I can use conditional formatting on the menu bar.
 

Users who are viewing this thread

Back
Top Bottom