I am writing a report which will calculate the elapsed time of surgical cases. The problem is, some of the cases span accross midnight. This causes my field to be show up as almost 24 hours in minutes (ex. -1340).
Here is how I have it set up:
I have In Time and Out Time fields that are formatted as time fields in the database. I created a formula field that subtracts the In Time field from the Out Time field then multiplies the answer by 1440 to get the total minutes. I can then sum the minutes at the end of the report. I have a group footer set up with a summary of minutes. For one particular group, I ended up with -471 minutes. That's when I checked the detail and saw that with those cases that span the midnight hour, I was getting -1340 (give or take) minutes.
How can I fix this? I need to be able to report out the amount of total minutes by group, and total minutes for the report.
Thanks!
Eric
Here is how I have it set up:
I have In Time and Out Time fields that are formatted as time fields in the database. I created a formula field that subtracts the In Time field from the Out Time field then multiplies the answer by 1440 to get the total minutes. I can then sum the minutes at the end of the report. I have a group footer set up with a summary of minutes. For one particular group, I ended up with -471 minutes. That's when I checked the detail and saw that with those cases that span the midnight hour, I was getting -1340 (give or take) minutes.
How can I fix this? I need to be able to report out the amount of total minutes by group, and total minutes for the report.
Thanks!
Eric