londonkiwi
Programmer
Firstly, I have checked through the Tek-Tips dbase to see if any answers have been provided previously - none?
I have a "Date" Field in a Table. In a query, I have found the min(DATE) and max(Date) dates eg 18/09/2001 and 27/09/2001. How do you then find the number of days between min(DATE) and max(DATE)
SQL as below
SELECT Min(IT.DATE) AS DATE_MIN, Max(IT.DATE) AS DATE_MAX, DateDiff("y",[min(Date)],[max(Date)]) AS DaysElapsed
FROM IT;
cheers
thanks in advance
The "DaysElapsed" fails.
I have a "Date" Field in a Table. In a query, I have found the min(DATE) and max(Date) dates eg 18/09/2001 and 27/09/2001. How do you then find the number of days between min(DATE) and max(DATE)
SQL as below
SELECT Min(IT.DATE) AS DATE_MIN, Max(IT.DATE) AS DATE_MAX, DateDiff("y",[min(Date)],[max(Date)]) AS DaysElapsed
FROM IT;
cheers
thanks in advance
The "DaysElapsed" fails.