Does this example query help show how to use the DateDiff function? I have
not formatted it as Pietro originally requested (ie. hh:nn:ss). To try out
this query, search your hard drive for the sample file named Northwind.mdb.
Create a new query without selecting any tables. In query design view, change
to SQL View, by clicking on View | SQL View. You should see the word SELECT
highlighted. Backspace over this to delete it. Copy the SQL statement shown
below, and paste it into the SQL View. Then run the query:
SELECT CompanyName, RequiredDate, ShippedDate,
DateDiff("d",[Orders.ShippedDate],[Orders.RequiredDate])
AS [Days Shipped Before Required Date]
FROM Customers
INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID;
You can then switch back to the more familiar design view, if you wish.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________