Unfortunately with conditional formatting, there is no way to reference
anything other than the current record (e.g. you can't run a comparison on
this value versus the previous value). Conditional formatting will not work
with functions either, which is very limiting. Also unfortunately,
continuous forms cannot be formatted by record... whatever you change in one
record will change in all records, except a few examples using conditional
formatting.
All in all, you're rather limited. The maximum different colors you will
every get from cond. formatting is four (default, and three expressions it
allows).
If you don't have more than 4 different routes to format, you should be ok,
but if you do, there's only one thing I can think of, and it won't work that
great unless you know what routes are going to be displayed every time.
Consider you have routes 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10
You have 4 conditions (3 + default)
If Number = 1, 5, or 10, leave at default
If Number = 2, or 6, set to color1
If number = 3 or 7, set to color2
if number = 4 or 8 set to color 3
(if you actually go this route you could set them up by mathematical
operators and comparisons to handle a larger number of possiblilities)
So, if you are ordered by number, and the numbers are sequential, and will
remain that way, you could effectively format your form so you will see
something like
grey
grey
grey
blue
blue
white
white
white
red
red
grey
blue
blue
white
red
red
.....
The only problem is, if there is ever numbers missing and the returned
records will be non-sequential, you can never really count on two whites not
whowing up next to each other where they shouldnt. I'm guessing that the
numbers will be nonsequential, but thats the best I can offer.
hth
--
Jack Leach
www.tristatemachine.com
- "Success is the ability to go from one failure to another with no loss of
enthusiasm." - Sir Winston Churchill