Calculating Time Difference

  • Thread starter Thread starter drmrinalini
  • Start date Start date
D

drmrinalini

Hi,

I am trying to develop a query where my client wants to track how much
time in minutes does a nurse spend in various activities (staff
education, patient/family education, answering drug relation questions
etc. etc.) to assist nurses in other units. What query type should I
use? How do I write the query? There is a start time (when the nurse
recieves the call) and completion time (when the nurse hangs up).

Thanks
Mrinalini
 
Hi,

I am trying to develop a query where my client wants to track how much
time in minutes does a nurse spend in various activities (staff
education, patient/family education, answering drug relation questions
etc. etc.) to assist nurses in other units. What query type should I
use? How do I write the query? There is a start time (when the nurse
recieves the call) and completion time (when the nurse hangs up).

Thanks
Mrinalini

Have a look at the DateDiff() function in VBA Help.

Ed Metcalfe.
 
Hi,

I am trying to develop a query where my client wants to track how much
time in minutes does a nurse spend in various activities (staff
education, patient/family education, answering drug relation questions
etc. etc.) to assist nurses in other units. What query type should I
use? How do I write the query? There is a start time (when the nurse
recieves the call) and completion time (when the nurse hangs up).

Thanks
Mrinalini

DateDiff("n", StartTimeField, CompletionTimeField)

....will return the minutes between the two DateTimes.

If you use that in a Totals query grouped by NurseID and activity, and use Sum
on the above expression then you will get the total minutes per activity per
nurse.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top