By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & 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

P: n/a
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
Share this Question
Share on Google+
2 Replies


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

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