R
rebeca
The following statement is populating a key field in my report. What
I am attempting to do is when the report startdate does not match the
date in the Beginning AR field (which is populated using DLOOKUP from
another table.
If the dates to not match, it needs to look at the query and sum the
total1 field for all dates between the BeginningARDate and the
ReportStartDate. For example, if I run a report with a January 2
startdate and the Beginning ARDate of January 1, it should sum the
total1 value for January 1 to the beginningardate and the finance
charge. I'm sure it's something simple, I just can't see it.
=IIf([beginningardate]=[reportstartdate],[begar]+[finchg],[begar]+
[finchg]+DSum("total1","SN AR Log Query2","Physician = '" &
[Physician] & "'" & "AND [batch date] >= #" & [BeginningARDate] & "#
AND #" [batch date] < #" & [ReportStartDate] & "#"))
Thanks!!!!
I am attempting to do is when the report startdate does not match the
date in the Beginning AR field (which is populated using DLOOKUP from
another table.
If the dates to not match, it needs to look at the query and sum the
total1 field for all dates between the BeginningARDate and the
ReportStartDate. For example, if I run a report with a January 2
startdate and the Beginning ARDate of January 1, it should sum the
total1 value for January 1 to the beginningardate and the finance
charge. I'm sure it's something simple, I just can't see it.
=IIf([beginningardate]=[reportstartdate],[begar]+[finchg],[begar]+
[finchg]+DSum("total1","SN AR Log Query2","Physician = '" &
[Physician] & "'" & "AND [batch date] >= #" & [BeginningARDate] & "#
AND #" [batch date] < #" & [ReportStartDate] & "#"))
Thanks!!!!