time query

G

Guest

I am trying to caculate the time difference between a time stamp located in
my table and the current time.

Appointment time is located in the table and is entered by the employee.
I would like to have my query identify any appointment that has exceeded a
two hour limit.
I have been able to do this between to set dates (appointment time and
departure time) but i have been unable to do it using current time. (now()
function)
 
M

Marshall Barton

Sam said:
I am trying to caculate the time difference between a time stamp located in
my table and the current time.

Appointment time is located in the table and is entered by the employee.
I would like to have my query identify any appointment that has exceeded a
two hour limit.
I have been able to do this between to set dates (appointment time and
departure time) but i have been unable to do it using current time. (now()
function)


DateDiff("n", [appointment time], Now) >120)
 
G

Guest

Thank you!!!!!!!!


Marshall Barton said:
Sam said:
I am trying to caculate the time difference between a time stamp located in
my table and the current time.

Appointment time is located in the table and is entered by the employee.
I would like to have my query identify any appointment that has exceeded a
two hour limit.
I have been able to do this between to set dates (appointment time and
departure time) but i have been unable to do it using current time. (now()
function)


DateDiff("n", [appointment time], Now) >120)
 

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

Top