DMax but less than

bd528

Registered User.
Local time
Today, 11:36
Joined
May 7, 2012
Messages
111
Hi,

I'm using the following in VBA :-

Code:
MaxVal = DMax("Sales_Ref","tblQuotesNew")

But how can I get the max Sales_Ref that is below 10,000?

Thanks in advance
 
Code:
MaxVal = DMax("Sales_Ref", "tblQuotesNew", "Sales_Ref < 10000")
 
Steve...do you EVER sleep?
 
Steve...do you EVER sleep?
Actually usually too much. Last night for example I was in bed from about 8:00 PM to 5:20 AM. But my prostrate causes me to get up about seven times so it even seems longer.
 

Users who are viewing this thread

Back
Top Bottom