Oct 28, 2004 #1 RAClarke Instructor Joined Sep 3, 2001 Messages 51 Location GB If I wish to sum up a column of hours on a form, how can I format a text box to show the result in days, hours and minutes (if in fact I can)? Thanks
If I wish to sum up a column of hours on a form, how can I format a text box to show the result in days, hours and minutes (if in fact I can)? Thanks
Oct 28, 2004 #2 Trendsetter Programmer Joined Mar 25, 2003 Messages 782 Location GB AS a guess I would think - in the format section of the properties page hh:nn:ss Frank J Hill FHS Services Ltd. frank@fhsservices.co.uk Upvote 0 Downvote
AS a guess I would think - in the format section of the properties page hh:nn:ss Frank J Hill FHS Services Ltd. frank@fhsservices.co.uk
Oct 28, 2004 #3 AlanKW Technical User Joined Jun 20, 2002 Messages 161 Location US Are the hours stored in date/time format or decimal? Upvote 0 Downvote
Oct 28, 2004 #4 Trendsetter Programmer Joined Mar 25, 2003 Messages 782 Location GB as part of the Date/Time format Frank J Hill FHS Services Ltd. frank@fhsservices.co.uk Upvote 0 Downvote
Oct 29, 2004 Thread starter #5 RAClarke Instructor Joined Sep 3, 2001 Messages 51 Location GB The hours are stored in date/time format. Upvote 0 Downvote
Oct 29, 2004 1 #6 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Something like this ? SELECT Int(Sum(theTable.Time)) & " day " & Format(Sum(theTable.Time),'hh:nn') AS TotalTime FROM theTable Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Something like this ? SELECT Int(Sum(theTable.Time)) & " day " & Format(Sum(theTable.Time),'hh:nn') AS TotalTime FROM theTable Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244