mark curtis
08-14-2001, 06:27 AM
Dear all,
I have a form with a subform.
The main form holds high level data about a risk, with a unique riskid.
The subform holds all the history of the risk such as when it is reviewed and updated.
Each time it is reviewed a new review date is entered for the new record.
So my problem is I want a query which will only return the history row for the risk where the latest review date is.
Basically how do I return a row for each risk that has the latest date.
I tried Max(DateValue(txtAssessmentDate)) but it did not like that.
Thanks
Mark
I have a form with a subform.
The main form holds high level data about a risk, with a unique riskid.
The subform holds all the history of the risk such as when it is reviewed and updated.
Each time it is reviewed a new review date is entered for the new record.
So my problem is I want a query which will only return the history row for the risk where the latest review date is.
Basically how do I return a row for each risk that has the latest date.
I tried Max(DateValue(txtAssessmentDate)) but it did not like that.
Thanks
Mark