I am trying to create a Macro attached to the 'On Current' property of a Form. I need the Macro to change the BackColor of a control (called [Status]), base on the percentage of another control (called [Sales Potential]), the percentages are 0 to 10, 11 to 20 etc up to 100 % using a different color for each. I tried the following:
If [Sales Potential] >=0 And <=10
SetProperty
Control [Sales Potential]
Property BackColor
Value #000000
[Sales Potential] >=11 And <=20 and so on.
The above returns "syntax error, Cannot Parse the Expression >=0 And <=10", when I try to save.
I also tried [Sales Potential] Between 0 And 10. SetProperty etc This saved but didn't work when I tried it.
I've tried Else If statements, Else Statements for other percentage increments, but cannot get anything to work.
I know the answer will be easy to someone, can anyone help a novice resolve this, I would be most appreciative.