Hi folks, hope you're all well.
I have scoured the internet in search of what Access' equivalent is to Excel's =MIN function in a formula. NOTHING.
I'm trying to calculate work hours in an Access table with calculated fields to calculate Regular time, over time, and double time respectively. As you can see, the Excel formulas below make it easy to do this.
I am so close with Access, but I can't seem to find the =MIN function, which in Excel, returns the smallest number in a set of values or formula.
Time In Time Out Less Meal
6:00 AM 8:30 PM 0.50
EXCEL (correct)
Regular time results = 8
=MIN(((TimeOut-TimeIn)*24)-LessMeal,8)
Over time results = 4
=MIN((((TimeOut-TimeIn)*24)-LessMeal)-RegHrs,4)
Double time = 2
=(((TimeOut-TimeIn)*24)-LessMeal)-RegHrs-OTHrs
ACCESS (not correct)
Regular time results = 14
((([TimeOut]-[TimeIn])*24)-[LessMeal],8)
and since OT and DT are calculated based on RegHrs it affects those hours too. Any help would be appreciated.
Ed