Home Forums Microsoft Access Microsoft Access How to query sql in MS Access 2007 Find Min & Max with DateTime? RE: How to query sql in MS Access 2007 Find Min & Max with DateTime?

  • In order to solve this sort of problem using Group By queries, you need to use multiple queries. The Max function is simply taking the Max function of the record where the Min was found, and that's because the Min only has one record, the minimum (which is the CheckIn record). The problem is often solved by using ADO or DAO record processing from VBA, and simply stepping through the records. One complication that has to be dealt with in either case is where there is a checkin record but no checkout record. It shouldn't happen, but it invariably will at some point.

    Wendell

    Wendell
    Colorful Colorado
    You can't see the view if you don't climb the mountain!