Max Function vs Last Function

G

Guest

I am trying to always retrieve the last date entered in a query. I have
tried the 'last' function but it did not give me the latest record date. I
am currently using the 'Max' function and it appears to be working but I am
leary using this function with date.
The data looks like this.
Person Points Point Date
AAAA 1 4/2/07
AAAA .5 05/05/07
AAAA .5 09/01/07

I am summing on the points and grouping on person. The results I want is this

AAAA 2.0 09/01/07

Am I okay in using Max on the point date field?
 
J

John W. Vinson

I am trying to always retrieve the last date entered in a query. I have
tried the 'last' function but it did not give me the latest record date.

Last() is just about totally useless. It returns the last record *in disk
storage order* - and you can't control or predict that order. Max is the way
to go.

John W. Vinson [MVP]
 
B

Bob Quintal

Last() is just about totally useless. It returns the last record
*in disk storage order* - and you can't control or predict that
order. Max is the way to go.

John W. Vinson [MVP]
I disagree, in that last on a query that specifies the order works
perfectly well. The same caveat applies to first.
 

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

Similar Threads

Dlookup 7
Pick last entered records from table 7
Previous Month Date Function 5
How to sum 2
max of date/time 3
24-hour clock format 4
Find then highlight in yellow 6
Design / Execution Question 9

Top