R
Russ Green
I'm trying to perform several manipulations to time values (all will be
stored in a access database). I need to find the elapsed time between a
start time and a finish time and I also need to be able to find the SUM of
multiple time values.
I know how to do this first part of the using the following code but how do
I add multiple time values together when they are in the "15:53:12" format?
____START CODE_____
Dim TimeStart, TimeStop As Date
Dim TimeDiff As TimeSpan
TimeStart = CDate(Me.txtTimeStart.Text)
TimeStop = CDate(Me.txtTimeStop.Text)
TimeDiff = TimeStop.Subtract(TimeStart)
____END CODE_____
Basically, I'm writing a small db app (using an access 2k backend) that will
log time spent on an activity (a log book). Each record will have a Start
Time and a Finish Time and an Elapsed Time (using the method shown above).
What I'm trying to get to is the total time spent across all entries. There
may only be 20 entries in the database but then there may be 100's.
How can I quickly get the SUM of all the times?
TIA
Russ
stored in a access database). I need to find the elapsed time between a
start time and a finish time and I also need to be able to find the SUM of
multiple time values.
I know how to do this first part of the using the following code but how do
I add multiple time values together when they are in the "15:53:12" format?
____START CODE_____
Dim TimeStart, TimeStop As Date
Dim TimeDiff As TimeSpan
TimeStart = CDate(Me.txtTimeStart.Text)
TimeStop = CDate(Me.txtTimeStop.Text)
TimeDiff = TimeStop.Subtract(TimeStart)
____END CODE_____
Basically, I'm writing a small db app (using an access 2k backend) that will
log time spent on an activity (a log book). Each record will have a Start
Time and a Finish Time and an Elapsed Time (using the method shown above).
What I'm trying to get to is the total time spent across all entries. There
may only be 20 entries in the database but then there may be 100's.
How can I quickly get the SUM of all the times?
TIA
Russ