Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query. Start date - End date = elapsed time in days and time..??? HOW?

0 views
Skip to first unread message

Timw

unread,
Nov 7, 2006, 5:56:04 AM11/7/06
to
Hi Guys,

I am very new to this so please break it down for me.

I have a query that returns all jobs on my helpdesk, but I want to
compare the Start Date and the End date and then output the elapsed
time in days and hours minutes? How do I do this?

The majority of jobs are closed but a few are open, will that cause
problems?

Many Thanks

Tim

Allen Browne

unread,
Nov 7, 2006, 6:48:57 AM11/7/06
to
See Doug Steele's advanced DateDiff() at:
http://www.accessmvp.com/djsteele/Diff2Dates.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Timw" <tim.w...@blueyonder.co.uk> wrote in message
news:1162896964.9...@h54g2000cwb.googlegroups.com...

Timw

unread,
Nov 7, 2006, 7:21:15 AM11/7/06
to
Thanks very much for pointing at the info. :¬)
Although I don't really know what to do with it, Do I cut and paste it
into my design view of the query I want to run?

Sorry to ask what must be painful questions for everyone here.

Thanks

Tim

Allen Browne

unread,
Nov 8, 2006, 6:35:57 AM11/8/06
to
Yes. Click the Modules tab of the Database window.
Click New. Access opens a new module.
Paste the code in there.
Choose Compile on the Debug menu to ensure Access understands it.

You can then use it anywhere you can use one of the built-in functions, e.g.
in a query, or in the Control Source of a text box.

"Timw" <tim.w...@blueyonder.co.uk> wrote in message

news:1162902075.6...@f16g2000cwb.googlegroups.com...


Thanks very much for pointing at the info. :¬)
Although I don't really know what to do with it, Do I cut and paste it
into my design view of the query I want to run?

Sorry to ask what must be painful questions for everyone here.

Thanks

Tim


Allen Browne wrote:
> See Doug Steele's advanced DateDiff() at:
> http://www.accessmvp.com/djsteele/Diff2Dates.html
>

0 new messages