I have a somewhat complicated problem. I have been asked to create a database based on the spreadsheet. It has lots of calculations that I am not sure are possible in Access. So any help is appreciated.
Employee Table: empid, empname
Employee OHHours Table: empOHID, Dept, Date, OHhours1, OHhours2, OHhours3, OHhours4, OHhours5. -This table one to many with Employees
Project Hours Table: EmpOHID, ProjectID, ProjectHours - This table one to many with Employee OHhours
Here is the problem. I have employees overhead hours per month, which consists of several types of overhead hours. This is only one line per month, but I also have project hours which can entail several projects. I have a report with a sub report that totals these out by employee, then by department. On the employee level I can get the a total of overhead hours and project hours. But on the Department level where it needs to adds the hours together for all the employees in the department I can't seem to bring over the project hours.
Here is the formula for the employee level which is working. =[Total_Overhead]+Nz([rpt_MONTHLY_SubRpt].[Report].[ProjectHours])
When I tried to bring it down the department level, it did not recognize the subreport and bring back only the Total_Overhead.
my formula is currently this =Sum([Total_Overhead]+Nz([rpt_PROJECT_TOTALS_sub].[Report].[SumofProjectHours]))
SumofProjectHours comes from a hidden subreport I based off a query totaling the project hours. I put the subreport in the Department footer along with the other totals. I have spent two whole days trying to figure out what is wrong. I also need this same calculation on a grand total level for the whole report. There are also two other calculations on the employee level that work, but I have not been able to get them to work on the department level either. I sure I have something in the wrong place or something not right, I just can't seem to figure it out. Thanks for any help I can get on this.
I have uploaded a screen shot of the spreadsheet I working from.