date time

  • Thread starter Thread starter brino
  • Start date Start date
B

brino

hi all !

i am doing a query to calculate the difference between a time in a
field and the present date/time.
the problem is its producing the result as a decimal value of a day.
how can i get it to produce the result in days & hours ??


thanks
brino
 
brino ha scritto:
hi all !

i am doing a query to calculate the difference between a time in a
field and the present date/time.
the problem is its producing the result as a decimal value of a day.
how can i get it to produce the result in days & hours ??


thanks
brino

You need a function, with DateDiff you can get the difference in Hours
or days....!
If you want Days and Hours you need also 2 Field:

So if you can get Total Hours with DateDiff and
TotHours=DateDiff("h".....)
HoursInDays=Hour\24 ----> or INT(Hours/24)
Hours=TotHours-HoursInDays

@Alex
 

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

Similar Threads

query problem 1
Date search query 0
date time 1
query problem 1
reporting even though a calculation made is dividing by zero 14
report 1
like function 2
time field 1

Back
Top