Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Times in queries

Status
Not open for further replies.

nevstic

Instructor
Jul 30, 2002
98
0
0
GB
Hi there everyone
Would someone have the answer to this please

I have a query and a calcualted field called
TIM:([tim2]-[tim1])

In Tim1 I have 11:00 and in Tim2 I have 12:0

When I run the query I get Like 0.04838382828

Can I show the result to be 1 (as I can in Reports)

Thanks
best rgds
Nick
 
Nick,

Try this:
TIM: datediff("h",[TIM1],[TIM2])

Cheers

B.
 
many thanks your quick reply "B"

works a treat !

Regards
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top