OK, here we go again. I copied the codes straight from the post, entered them, and ran the report, still getting the same thing. I have an individual who has 200 hours, 39 minutes and it comes up 8:39. Frustration is a mild word for what I'm feeling. I only have 5 posts (this will make 6), so don't know what else to do. Thank you again for being so patient. You are the first person that has even given me the time of day on this issue. Most people just say, "I don't like Access, ask someone else". So I really appreciate all your help. This is what the field in the query that I draw this information from looks like: Total Hours: Sum([Clock out 1]-[clock in 1]).
Attendance by Clock In Date Last Name First Name Day or Night Clock In 1 Clock Out 1 Reason for Absence 2/28/2011 Dryer Paula N 18:00 20:35 (This part keeps changing when I try to send it to you).
Clock in and Clock out are formatted as Date/Time,short time.
I pasted this: =HoursMinutes(Sum([clock out 1]-[clock in 1])) into the Details Total Hours control source of the report.
I pasted this:
Option Compare Database
Private Sub Report_Current()
Function HoursMinutes(ByVal interval As Double) As String
Dim days As Long
Dim var
days = Int(interval)
var = Split(Format(interval - days, "h:nn"), ":")
HoursMinutes = days * 24 + var(0) & ":" & var(1)
End Function
in the "On Current" line of the Report form properties Event tab.
That is all the information I know to give you. Thanks bunches and bunches. Oh, and where do I find the Watercooler, which tab?