Max

Value = Max ( Expression , Expression )

Returns the greater of the two expressions

Expressions must be numbers or date/time values.

Examples

PRINT Max(6, 4)
6

PRINT Max(Now, CDate("01/01/2100"))
01/01/2100

See also