I have a query in a listbox that shows how many weeks ago I saw a client. I looked at one entry where the visit date was 20/02/2006 with the date today being 24/03/2006 it showed 11 weeks duration?
The query is as follows:
SELECT Contacts.ID2, Companies.ID1, Contacts.Name, Max(Appts.Visited) AS [Last Visit], Min(IIf(IsNull([Appts].[Visited]),'-',(Date()-Nz([Appts].[Visited],0))\7 & ' Weeks')) AS Duration
FROM .........
Many thanks
The query is as follows:
SELECT Contacts.ID2, Companies.ID1, Contacts.Name, Max(Appts.Visited) AS [Last Visit], Min(IIf(IsNull([Appts].[Visited]),'-',(Date()-Nz([Appts].[Visited],0))\7 & ' Weeks')) AS Duration
FROM .........
Many thanks