This MaxOfList() function might help:
http://allenbrowne.com/func-09.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Mojo" wrote in message
...
Hi All
Does anybody know of an easy way to find out which variable has the
highest
value out of 8 variables?
For example, I have these values in 8 vars:
3 0 7 30 37 17 0 7
Although from a human's perspective it's easy to see that the 5th var has
the highest value, how can I chose the appriopriate var programmatically?
Thanks