I hoping someone can suggest some VBA code to do the following calculations. I want to calculate in hour and minutes the total time of an event that may be less than one day, equal to one day, or more than one or two days long.
On a subform Users enter a [StartDate] in one field and [StartTime] in another field,
Users enter [EndDate] in one field and [EndTime] in another field at the end of the event.
Formats are short date and medium time. A field named [TotalTime] would receive the calculated result in hours and minutes when the [EndDate] and [EndTime] are entered. All fields are in a table named [tblTotalEventTime].
Example:
Start Date: 9/10/2009
Start Time: 09:00AM
End Date: 9/12/2009
End Time: 10:00am
Total Time: 49hrs 00min (Or 49:00)
Thanks in advance...
On a subform Users enter a [StartDate] in one field and [StartTime] in another field,
Users enter [EndDate] in one field and [EndTime] in another field at the end of the event.
Formats are short date and medium time. A field named [TotalTime] would receive the calculated result in hours and minutes when the [EndDate] and [EndTime] are entered. All fields are in a table named [tblTotalEventTime].
Example:
Start Date: 9/10/2009
Start Time: 09:00AM
End Date: 9/12/2009
End Time: 10:00am
Total Time: 49hrs 00min (Or 49:00)
Thanks in advance...