I have a subform that contains a history of workorder statuses. It shows evertime the status changes and I want to create a summary of how long each workorder was in each status.
For instance a workorder might go from "Awaiting Maintenance" for 3 days to "Awaiting Part" for 2 days and back to "Awaiting Maintenance" for 1 day. I want a group of text boxes to show how long it was in "Awaiting Mainenance" (4 days total in the example above) and how long it was in "Awaiting Part" (2 days in the example above). I also want to show total days.
I have the subform that shows each status and how long it was in that status by subtracting the status start date from the end date. This shows the days for each status change; now I want to add the days for each status to get the overall time for each one.
In excel I would use sumif to specify which rows to sum but I have now idea how to do this in Access.
For instance a workorder might go from "Awaiting Maintenance" for 3 days to "Awaiting Part" for 2 days and back to "Awaiting Maintenance" for 1 day. I want a group of text boxes to show how long it was in "Awaiting Mainenance" (4 days total in the example above) and how long it was in "Awaiting Part" (2 days in the example above). I also want to show total days.
I have the subform that shows each status and how long it was in that status by subtracting the status start date from the end date. This shows the days for each status change; now I want to add the days for each status to get the overall time for each one.
In excel I would use sumif to specify which rows to sum but I have now idea how to do this in Access.