FrymanTCU
01-14-2008, 12:08 PM
Okay I have tried this a couple different ways and have had no luck. I tried a few built in fucntion but I must be doing something wrong, if not maybe one of you have a VB function would work instead. I tried to search the forum but did not find anything.
So here's my problem, I have a report that will be updated regularly and I have set it up so new items are appended and deletes items that fall off. But I want to age the items on the report by business days from the day they are added. I have a report date tied to each record, then I tried the DateDiff('w', ReportDate , Date()). Which seems to return weeks not weekdays.
Then I tried a DCount function where I have a seperate Date table with business days as a column in the table. DCount("[Time]![workday]","Time",Time!TransDate>[Closure Log History]![Report Date] And Time!TransDate<Now()) but this returns a count of all the records in the Time table or zero.
If anyone knows how to fix these functions or has a VB function to count business you would be my hero. Thanks in advance.
So here's my problem, I have a report that will be updated regularly and I have set it up so new items are appended and deletes items that fall off. But I want to age the items on the report by business days from the day they are added. I have a report date tied to each record, then I tried the DateDiff('w', ReportDate , Date()). Which seems to return weeks not weekdays.
Then I tried a DCount function where I have a seperate Date table with business days as a column in the table. DCount("[Time]![workday]","Time",Time!TransDate>[Closure Log History]![Report Date] And Time!TransDate<Now()) but this returns a count of all the records in the Time table or zero.
If anyone knows how to fix these functions or has a VB function to count business you would be my hero. Thanks in advance.