I have a tblActivity with fields StartDate and EndDate with Date Type as Date/Time (no specified format), and a report with tbxDuration with control source
I would like to change the control source for tbxDuration so that the period of time from 9:00 AM to 9:15 AM, 11:45 AM to 12:30 PM, and 2:00 PM to 2:15 PM are not included in the duration calculation.
Example 1. If the start date is 4/6/08 8:00 AM and the end date is 4/6/08 11:30 AM, the duration would be 3.25 hours.
Example 2. If the start date is 4/6/08 8:00 AM and the end date is 4/6/08 2:00 PM, the duration would be 5.00 hours.
Example 3. If the start date is 4/6/08 9:15 AM and the end date is 4/6/08 at 4:00 PM, the duration would be 5.75 hours.
Thanks,
Brian
Code:
=[EndDate]-[Start][Date]
I would like to change the control source for tbxDuration so that the period of time from 9:00 AM to 9:15 AM, 11:45 AM to 12:30 PM, and 2:00 PM to 2:15 PM are not included in the duration calculation.
Example 1. If the start date is 4/6/08 8:00 AM and the end date is 4/6/08 11:30 AM, the duration would be 3.25 hours.
Example 2. If the start date is 4/6/08 8:00 AM and the end date is 4/6/08 2:00 PM, the duration would be 5.00 hours.
Example 3. If the start date is 4/6/08 9:15 AM and the end date is 4/6/08 at 4:00 PM, the duration would be 5.75 hours.
Thanks,
Brian