I have a table of timecards each recording minutes spent on each task for each client and I have summed those minutes by client in a query.
I have then in the same query converted each sum of minutes to hrs:mins format using this calculated field:
HrsMins: [SumOfMinTime]\60 & Format([SumOfMinTime] Mod 60,"\:00")
So this turns e.g. 261 minutes into 4:21
Based on that query I have a report showing total hrs:mins spent on each client, e.g.
Smith 4:21
Jones 5:32
James 1:23
Now I want to show a total at the bottom, i.e. in the above example it would be 11:16.
So for the control source for a total field on the report I tried:
=Sum([HrsMins])
But when I do that I get an error message:
"Data type mismatch in critieria expression"
I don't understand this.
I may be because I am trying to sum calculated fields amounts that are calculated using a function.
Or it may be that the format is not being recognised as hours and minutes and thus cannot be added up.
Can anyone think of a way in which I could get a total here in hours and minutes format (hrs:mins).
I have then in the same query converted each sum of minutes to hrs:mins format using this calculated field:
HrsMins: [SumOfMinTime]\60 & Format([SumOfMinTime] Mod 60,"\:00")
So this turns e.g. 261 minutes into 4:21
Based on that query I have a report showing total hrs:mins spent on each client, e.g.
Smith 4:21
Jones 5:32
James 1:23
Now I want to show a total at the bottom, i.e. in the above example it would be 11:16.
So for the control source for a total field on the report I tried:
=Sum([HrsMins])
But when I do that I get an error message:
"Data type mismatch in critieria expression"
I don't understand this.
I may be because I am trying to sum calculated fields amounts that are calculated using a function.
Or it may be that the format is not being recognised as hours and minutes and thus cannot be added up.
Can anyone think of a way in which I could get a total here in hours and minutes format (hrs:mins).