J
John W. Vinson
I hope I can say this half way intelligently. I have a record set with 2
date fields (One in date and One out date) I have a query to select the
records between a specific date range (no problem) now problem: I need to
also select the earliest date in at the same time. So thus far I have this
code as an expression in empty field: Cohort: IIf([relsdate] Between
[7/1/fy] And [6/30/fy],"1"," ") this codes all who are released between my
date selection with a 1. Often there are more than one record for a person
with different time intervals. Simply, I need to code the earliest record
for each cohort that is within the relsdate range and code it with the 1.
I am pretty new at this coding stuff; got a lot to learn.
Thanks
Pat
You'll need a Subquery with a criterion such as
(SELECT Min([relsdate]) FROM mytable AS X WHERE <some matching criteria>)
If you'll post the actual SQL text of your current query we may be able to
help add this criterion for you.
John W. Vinson [MVP]