[AccessD] highest value of 4 variables - urgent

Webadmin - Tenbus spike at tenbus.co.uk
Sun Nov 4 02:27:06 CST 2007


That's neat Andy!

One to file away.

Regards
Chris Foote

Andy Lacey wrote:
> If you write yourself a general purpose Max function along the lines of
>
> Function Max(var1, var2)
>
> If var1>var2 then
>   Max=var1
> Else
>   Max=var2
> End if
> End Function
>
> then you can just
>
> Result=Max(Max(Max(var4,var3),var2),var1)
>
> -- Andy Lacey
> http://www.minstersystems.co.uk 





More information about the AccessD mailing list