G
Guest
In researching my question, I found the following statement that works for
me. I am trying to obtain, per person, the latest record. One question: I
need to use two date fields as Max...a Notes field (short date) and the
Create date (date/time). In the table, it's possible to have the same Notes
date but different create date. How would I add this to the statement below?
Statement that I found on this forum:
If you want to select the latest record for each person:
SELECT table.*
FROM table
WHERE table.datefield = (
SELECT Max(X.datefield)
FROM table As X
WHERE X.personid = table.personid)
--
me. I am trying to obtain, per person, the latest record. One question: I
need to use two date fields as Max...a Notes field (short date) and the
Create date (date/time). In the table, it's possible to have the same Notes
date but different create date. How would I add this to the statement below?
Statement that I found on this forum:
If you want to select the latest record for each person:
SELECT table.*
FROM table
WHERE table.datefield = (
SELECT Max(X.datefield)
FROM table As X
WHERE X.personid = table.personid)
--