ok.... I will assume the following table and fields:
Table1
dte_Start
dte_End
Here is the SQL code for the query:
SELECT Table1.dte_start, Table1.dte_end, Int((DateDiff("d",[dte_start],[dte_end]))/365.25) AS Years, Int(((DateDiff("d",[dte_start],[dte_end])/365.25-1)-Int((DateDiff("d",[dte_start],[dte_end])/365.25-1)))*12) AS Months, Int((((DateDiff("d",[dte_start],[dte_end])/365.25-1)-Int((DateDiff("d",[dte_start],[dte_end])/365.25-1)))*12-Int(((DateDiff("d",[dte_start],[dte_end])/365.25-1)-Int((DateDiff("d",[dte_start],[dte_end])/365.25-1)))*12))*30)+1 AS Days
FROM Table1;
Now just replace the table and fields with your specific names. Let me know how it works out.
"Life is a Database"
|