P
pyxi_styx via AccessMonster.com
I have looked at over 20 answers to similar questions, but am unable to find
a working solution to my issue.
I have a report based upon a table Calls. The used fields are CustomerID,
CallNum, CallDate, CallTotal, and DaysBetween (calculated field).
What I need is for every customer call visit, a calculate between the last
visit (to the same customer, but not necessarily the same call number) and
this line item one.
I.e.
CustomerID CallNum CallDate CallTotal DaysBetween
FlStU 24324 1/15/09 $4,554 0
FlStU 24324 1/20/09 $342 5
FlStU 25421 2/1/09 $2,443 12
USF 24948 1/4/09 $974.15 0
USF 26485 2/4/09 $96.91 31
USF 26485 2/6/09 $421 2
In the DaysBetween Control source, I have
=DateDiff("d",NZ(DMax("[CallDate]","[CompanyID] = " & [CompanyID] & " AND
[CallDate] < #" & [CallDate] & "#"),[CallDate]),[CallDate])
Please oh please help... this is killing me!
a working solution to my issue.
I have a report based upon a table Calls. The used fields are CustomerID,
CallNum, CallDate, CallTotal, and DaysBetween (calculated field).
What I need is for every customer call visit, a calculate between the last
visit (to the same customer, but not necessarily the same call number) and
this line item one.
I.e.
CustomerID CallNum CallDate CallTotal DaysBetween
FlStU 24324 1/15/09 $4,554 0
FlStU 24324 1/20/09 $342 5
FlStU 25421 2/1/09 $2,443 12
USF 24948 1/4/09 $974.15 0
USF 26485 2/4/09 $96.91 31
USF 26485 2/6/09 $421 2
In the DaysBetween Control source, I have
=DateDiff("d",NZ(DMax("[CallDate]","[CompanyID] = " & [CompanyID] & " AND
[CallDate] < #" & [CallDate] & "#"),[CallDate]),[CallDate])
Please oh please help... this is killing me!