J
JOM
I want to calculate the turn times of my records but there is something
tricky about it... I am now able to subtract the weekends and holidays but
the thing is that if there is holiday, the turn times would be plus 2 days
e.g.,
To process a 1040, it takes upto 2 days excluding weekends and Holidays so
if I received it on 12/30/05 then the document would be late on 01/09/06..
this is how my statement looks like:
="CompTime (1040, 1065,1120): " &
Abs(Sum(IIf(TaxDocStatus="Complete",(IIf(((TaxDocName In
("1040","1065","1120")) And
DateDiff("d",RqstDateRcvd,TxDocDateRcvd)-DateDiff("ww",TxDocDateRcvd,RqstDateRcvd,7)-DateDiff("ww",TxDocDateRcvd,RqstDateRcvd,1)-
DCount("*","Holiday","HdyDate Between " &
format$(RqstDateRcvd,"\#mm\/dd\/yyyy\#") & " And " &
Format$(TxDocDateRcvd,"\#mm\/dd\/yyyy\#"))<=2),1,0)))))
The above works well when in a query but crashes when I put it in my unbound
textbox in my report, it crashes any reason why??
tricky about it... I am now able to subtract the weekends and holidays but
the thing is that if there is holiday, the turn times would be plus 2 days
e.g.,
To process a 1040, it takes upto 2 days excluding weekends and Holidays so
if I received it on 12/30/05 then the document would be late on 01/09/06..
this is how my statement looks like:
="CompTime (1040, 1065,1120): " &
Abs(Sum(IIf(TaxDocStatus="Complete",(IIf(((TaxDocName In
("1040","1065","1120")) And
DateDiff("d",RqstDateRcvd,TxDocDateRcvd)-DateDiff("ww",TxDocDateRcvd,RqstDateRcvd,7)-DateDiff("ww",TxDocDateRcvd,RqstDateRcvd,1)-
DCount("*","Holiday","HdyDate Between " &
format$(RqstDateRcvd,"\#mm\/dd\/yyyy\#") & " And " &
Format$(TxDocDateRcvd,"\#mm\/dd\/yyyy\#"))<=2),1,0)))))
The above works well when in a query but crashes when I put it in my unbound
textbox in my report, it crashes any reason why??