E
Eric Smith
I have created a query to substract the StartDate and EndDate for funding project:
SELECT Avg(DateDiff("d",[StartDate],[EndDate])) AS [Average Days In Pipe]
FROM tblFundingProject
WHERE (((tblFundingProject.ActiveStatus)="Active"));
Works fine. Heres the issue I am trying to figure out. Some of the funding projects do not have a value for the end, because they are still in progress. In these cases I want to use the current date to determine the number of days from StartDate to EndDate. Any thoughts about how to do this?
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
SELECT Avg(DateDiff("d",[StartDate],[EndDate])) AS [Average Days In Pipe]
FROM tblFundingProject
WHERE (((tblFundingProject.ActiveStatus)="Active"));
Works fine. Heres the issue I am trying to figure out. Some of the funding projects do not have a value for the end, because they are still in progress. In these cases I want to use the current date to determine the number of days from StartDate to EndDate. Any thoughts about how to do this?
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com