I need to be able to calculate (in a query, if possible)the elapsed time between the fields TimeIn and TimeOut. I would prefer the answer just show the total minutes elapsed.<br>Can anyone suggest a way to do this? <br>Thanks in advance!
Seems like I just answered this question, maybe at another site.<br><br>Add this fuction to a module:<br><br>Public Function fMinutesElapsed(interval) As Integer<br>If IsNull(interval) Then Exit Function<br>fMinutesElasped = Int(CSng(interval * 1440))<br>End Function<br><br>To use this fundtion in an expression in a query, try this:<br><br>Minutes:fMinutesElapsed([TimeOut]-[TimeIn])<br><br>HTH<br>RDH <p>Ricky Hicks<br><a href=mailto: rdhicks@mindspring.com> rdhicks@mindspring.com</a><br><a href= > </a><br>
Seems like I just answered this question, maybe at another site.<br><br>Add this function to a module:<br><br>Public Function fMinutesElapsed(interval) As Integer<br>If IsNull(interval) Then Exit Function<br>fMinutesElasped = Int(CSng(interval * 1440))<br>End Function<br><br>To use this function in an expression in a query, try this:<br><br>Minutes:fMinutesElapsed([TimeOut]-[TimeIn])<br><br>HTH<br>RDH <p>Ricky Hicks<br><a href=mailto: rdhicks@mindspring.com> rdhicks@mindspring.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.