Ok, here's something that's driving me nuts, I've searched high and low on the web, and nothing seems to work.
I'm trying to create a report to track the number of days spent on a project. Each portion of the project is recorded as an event with a start date and end date, and whoever is responsible for that particular portion of the project.
I'm trying to break down the report into time spent by each individual responsible. On the report I have a text box with the code
"=Sum(DateDiff("d",[Start Date],[End Date]))*5/7"
(the 5/7 is to estimate working days rather than total days since I also couldn't figure out a "networkday" function like Excel has) Other than that the code uses a query as the source.. The query already has the group responsible inserted, so I just want to add up the total number of days reported under that individual.
The code works perfectly, however for individuals that don't have any events, it returns #Error. I'm assuming because the query returns a Null value for them.
I've tried using
IIf(Sum(DateDiff("d",[Start Date],[End Date]))*5/7>0,=Sum(DateDiff("d",[Start Date],[End Date]))*5/7,"0")
IIf(IsNull([End Date]),"0",Sum(DateDiff("d",[Start Date],[End Date]))*5/7)
and
=Sum(DateDiff("d",Nz([Start Date],0),Nz([End Date],0)))*5/7
None of which have worked, all still return #Error.
What am I missing?