468,244 Members | 1,833 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,244 developers. It's quick & easy.

How to sum up total time logged in by a given member in tblMemberLogins having Login & Logout Date Type fields

MLH
I have tblMemberLogins with [Login] and [Logout] fields. Any member
may appear in the table numerous times. How can I sum up the total
time spent logged in by any member in the table, I can extract the
records easily enough and compute the minutes spent logged in for
each record with a query. No problem. But invoking this query from
code to arrive at the total of all minutes logged in escapes me.

Ideas?
Nov 13 '05 #1
2 1623
You could use a DateDiff with a DSum total.

Use the DateDiff from timeon to timeoff, or whatever your field names are and
then create a DSum of the DateDiff field
Nov 13 '05 #2
MLH
Thank-you. That worked perfectly.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 01 Jul 2004 23:36:09 GMT, lu*************@aol.com (Lumpierbritches)
wrote:
You could use a DateDiff with a DSum total.

Use the DateDiff from timeon to timeoff, or whatever your field names are and
then create a DSum of the DateDiff field


Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mark Reed | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.