Hi All,
I have two tables.
tblCaseDetail
tblCaseHistory
I have also created a report to generate the report detail and history information.
in the report there is a field which will count the days btw the reported date and the ResolvedDate.
In my tblCaseDetail the record and field will be like this.
CaseID ReportedDate CaseType Des 00001 10/08/2014 Toilet Dirty 00002 20/08/2014 Flooring Crack 00003 30/08/2014 Lighting Need to change light bulb
In my tblHistory the record and field will be like this.
HistoryID CaseID ResolvedDate Des 01 00002 Need to arrange 02 00003 Need to purchase light bulb 03 00002 01/09/2014 Change the flooring 04 00001 arrange for cleaning
In my report there are one field "Resolved Day", it will count the date diff btw tblCaseDetail.reportedDate and tblHistory.resolvedDate.
When come to CaseID "00002" i notice my below code not working as there are two lines in tblHistory.
=DateDiff("d",[ReportedDate],[TBLCaseDetail.ResolvedDate]+1)
One with ResolvedDate and one without.
How can i get my code to see the one with "resolvedDate"?
Thanks.