Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tallying time values in report footers

Status
Not open for further replies.

CCS8DENI

Technical User
Jul 20, 2000
31
0
0
AU
Is it possible to enter an expression in an unbound box that will vertically tally hours and not represent the result in 24 hour incriments?<br><br>ie 13:00, 7:00 and 10:00 will equal 30:00 not 6:00.<br><br>
 
In your query that is the recordsource for the form, create a calculated column where the Field is HoursOnly: DatePart(&quot;h&quot;,[DateTimeField]). (This assumes that the name of your field is DateTimeField.)&nbsp;&nbsp;<br><br>This will create an integer field of hours only called HoursOnly in your recordsource.&nbsp;&nbsp;Then, in the form footer place a calculated field whose controlsource is =Sum([HoursOnly]).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top