I'm trying to add a field in a query that will return the higher value of two other fields in a record. In Excel I can use the MAX function, and it works like a charm, but no luck in Access. In Help files it looks like the expression should be:
=MAX([DATE1],[DATE2])
Example:
If [DATE1] = 1/1/2008 12:40:00 PM
And [DATE2] = 1/1/2008 11:15:00 AM
[LATEST DATE] = 1/1/2008 12:40:00 PM
Doesn't have to be for a date, I'd be just as happy to get it working with two numbers. Any ideas?
=MAX([DATE1],[DATE2])
Example:
If [DATE1] = 1/1/2008 12:40:00 PM
And [DATE2] = 1/1/2008 11:15:00 AM
[LATEST DATE] = 1/1/2008 12:40:00 PM
Doesn't have to be for a date, I'd be just as happy to get it working with two numbers. Any ideas?
Comment