By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

date time

P: n/a
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

Oct 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
To get the result in hours and fractions of an hour, use TimeValue() to
separate the time component from the date/time value, and multiply by 24.

Example:
Hours: 24 * TimeValue([SomeDateTime])

--
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.

"brino" <bd*************@yahoo.com.auwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
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

Oct 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.