Getting the first value in a recordset

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I am grouping on a number of fields in a select query. How can I get the min
value of a date field in the overall query result set? If I choose
min([date]) then I get the min dates in each of the group and not overall
min value.

Thanks

Regards
 
Try using DMin() as a Calculated Field / Column in your Query. Check Access
Help for syntax.

BTW, "date" is a bad choice for a Field name. There is a Date() function as
well as a Date statement. It can get very confusing when you write code.
Suggest changing the Field name if possible.

HTH
Van T. Dinh
MVP (Access)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top