I am trying to get a certain colour displayed for different value ranges (a traffic lights system). Although I can get 3 colours displayed using basic code (and I am not an expert in this) I am unable to get it to work when using BETWEEN.
For example if I write the following I get a compile error which displays "expected then or goto":
If fieldname.value between 1 and 10 then
fieldname backcolor = 255
(255=the number for red)
Where am I going wrong?
Thanks in advance
For example if I write the following I get a compile error which displays "expected then or goto":
If fieldname.value between 1 and 10 then
fieldname backcolor = 255
(255=the number for red)
Where am I going wrong?
Thanks in advance