The only time-related data type in Access is the Date type, which isn't
intended to be used for time durations: it's supposed to be a timestamp
(specific point in time). That's because, under the covers, it's an 8 byte
floating point number where the integer portion represents the date as the
number of days relative to 30 Dec, 1899, and the decimal portion represents
the time as a fraction of a day.
What you should do is store the hours in an Integer field as the number of
minutes spent studying. You can then add together the number of minutes
spent. Write your own custom function to format total minutes to hh:nn, and
you should be fine.
Function FormatMinutes(TotalMinutes As Long) As String
FormatMinutes = Format(TotalMinutes \ 60, "0") & ":" & _
Format(TotalMinutes Mod 60, "00")
End Function
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Ahmer" <(E-Mail Removed)> wrote in message
news:FF80077B-99C0-4D37-A568-(E-Mail Removed)...
> Dear Sir, i m working on a database in Access, which maintains the Study
> hours of Students. How can i define a field in a table which can give me
> Sum
> of Total Hours of a specific Student, or of all students At the end of the
> month. How can i add Hours and Minutes of that Field in a report.
>
>
> Regards