G
Guest
In reference to the recent post "Need help with a Max function" - I'm glad
you confirmed that that works.
That is how I intended to run a MAX date query (but I'm not having any such
luck)
(Dealing with Membership) In addition to finding the LATEST date of a field,
I also want to find any NULL field for that date So I want to find current
members either with no THRU-Date (the expiration date) OR Just the LATEST
Thru-date that member incurred.
Here is my unsuccessful query:
SELECT DISTINCT MRN, MemNAME AS Member,
DOB,
SEX,
SSN,
GROUP,
SGR,
[FROM-DT],
[THRU-DT]
FROM qMembershipSelect
GROUP BY MRN, MemNAME, DOB, SEX, SSN, GROUP, SGR, [FROM-DT], [THRU-DT]
HAVING ((([THRU-DT])=Max([Thru-Dt]))) OR ((([THRU-DT]) Is Null))
ORDER BY MemNAME, [FROM-DT] DESC;
I will greatly appreciate and archive the solution to this! Thanks.
you confirmed that that works.
That is how I intended to run a MAX date query (but I'm not having any such
luck)
(Dealing with Membership) In addition to finding the LATEST date of a field,
I also want to find any NULL field for that date So I want to find current
members either with no THRU-Date (the expiration date) OR Just the LATEST
Thru-date that member incurred.
Here is my unsuccessful query:
SELECT DISTINCT MRN, MemNAME AS Member,
DOB,
SEX,
SSN,
GROUP,
SGR,
[FROM-DT],
[THRU-DT]
FROM qMembershipSelect
GROUP BY MRN, MemNAME, DOB, SEX, SSN, GROUP, SGR, [FROM-DT], [THRU-DT]
HAVING ((([THRU-DT])=Max([Thru-Dt]))) OR ((([THRU-DT]) Is Null))
ORDER BY MemNAME, [FROM-DT] DESC;
I will greatly appreciate and archive the solution to this! Thanks.