The formula I have is:
if {VP_TOTALS.PAYCODENAME}="Night" then({VP_TOTALS.TIMEINSECONDS}/6/6).
That gives me their time to the second without rounding. I then do a running total of those hours setting it to Evaluate for each record and Reset on change of group. I then have a formula to convert it to text:
right ("0000"+totext ({#Night_SU} ,0,""),4)
The reason for the extra stuff is I need the number to always have four digits and sometimes it may only have 1 so I add the 0's and just pull the last four digits. I then palce it in a group footer. The report is grouped by their name. The end result is something like:
ZTAHDV0001600099R103200
Wtih the last four numbers being the amount of hours for that paycode. I do this for each of the paycodes we have which is about 20 so an employye could have several lines on the report depending on how many different paycodes his hours are in. I can add the hours for each of those paycodes with out any problems but what I need is to be able to count the total number of records. I have tried all kinds of Sum's, counts,distinct counts and nothing seems to work. I have even set a formula in each group to give me numbers to try and do a count on but that does not seem to work either. I am not sure if I have done the report the right way but it does give me all the right answers except for this last one. I hope this is not too confusing.
KevV