Traying to creae query to used as a summary table for inout into other queries.
Table has UserStart and UserEnd as date times, and those time will span the hour boundries. Example: UserStart = 7/6/2003 09:45:15 and UserEnd = 7/6/2009 10:23:10. Thus I have to split the difference between the times to that part goes onto the 10:00 hour and the rest goes into the 09:00 hour. If I can convert the inter result of Hour(UserEnd) to a proper date then I can use DateDiff to get the parts I need. So the questionis how do you convert and integer into an acceptble time? Example: Hour(UserEnd) = 8, and turn that 8 into 08:00:00 that couldbe used in datediff.
Have tried all kind of Rube Goldberg things, non of which workd. Thought I had it but kept getting a huge number cback instead of a time (probably the difference from 1/1/1900)
Long way for a simple question.
Thanks
jpl
Table has UserStart and UserEnd as date times, and those time will span the hour boundries. Example: UserStart = 7/6/2003 09:45:15 and UserEnd = 7/6/2009 10:23:10. Thus I have to split the difference between the times to that part goes onto the 10:00 hour and the rest goes into the 09:00 hour. If I can convert the inter result of Hour(UserEnd) to a proper date then I can use DateDiff to get the parts I need. So the questionis how do you convert and integer into an acceptble time? Example: Hour(UserEnd) = 8, and turn that 8 into 08:00:00 that couldbe used in datediff.
Have tried all kind of Rube Goldberg things, non of which workd. Thought I had it but kept getting a huge number cback instead of a time (probably the difference from 1/1/1900)
Long way for a simple question.
Thanks
jpl