Okay, I have been serching the forums for the past 2 days trying to find something similar but have not found it. I have a query that prompts the user for a project number and a date and pulls all of the employees working on that project and how many hours they worked that particular day.
So the problem is this, I need to have three calculations for their hours. One in the top of the Report that will capture only certain employees total time with a specific category code and another right under it capturing the other employee's total time. Then in the body of the report I am itemizing each employees hours.
Here is the SQL from the query:
SELECT ADS.ADS_DATE, [ADS Detail].ADSDETAIL_REGHOURS, [ADS Detail].ADSDETAIL_OTHOURS, Employee.EMP_NUMBER, Employee.EMP_CATEGORY, [ADS Detail].PHASE_ID, Employee.EMP_FNAME, Employee.EMP_LNAME, Employee.EMP_TITLE, [Project Information].PROJECT_DESCR, [Project Information].PROJECT_NUMBER, [Project Information].PROJECT_CHARGECODE, [Project Information].PROJECT_SURVEYNUM, [Project Information].PROJECT_CONTRACTNUM, [EMP_LNAME] & ", " & [EMP_FNAME] AS FullName
FROM Employee INNER JOIN ([Project Information] INNER JOIN (ADS INNER JOIN [ADS Detail] ON ADS.ADS_ID = [ADS Detail].ADS_ID) ON [Project Information].PROJECT_ID = [ADS Detail].PROJECT_ID) ON Employee.EMP_ID = ADS.EMP_ID
WHERE (((ADS.ADS_DATE)=[WHAT DATE?]) AND (([ADS Detail].PHASE_ID)<>1) AND (([Project Information].PROJECT_NUMBER)=[WHAT PROJECT?]));
So I need to take the categories and add the total time from everyone in that category.
Thank you in advance for you help.
So the problem is this, I need to have three calculations for their hours. One in the top of the Report that will capture only certain employees total time with a specific category code and another right under it capturing the other employee's total time. Then in the body of the report I am itemizing each employees hours.
Here is the SQL from the query:
SELECT ADS.ADS_DATE, [ADS Detail].ADSDETAIL_REGHOURS, [ADS Detail].ADSDETAIL_OTHOURS, Employee.EMP_NUMBER, Employee.EMP_CATEGORY, [ADS Detail].PHASE_ID, Employee.EMP_FNAME, Employee.EMP_LNAME, Employee.EMP_TITLE, [Project Information].PROJECT_DESCR, [Project Information].PROJECT_NUMBER, [Project Information].PROJECT_CHARGECODE, [Project Information].PROJECT_SURVEYNUM, [Project Information].PROJECT_CONTRACTNUM, [EMP_LNAME] & ", " & [EMP_FNAME] AS FullName
FROM Employee INNER JOIN ([Project Information] INNER JOIN (ADS INNER JOIN [ADS Detail] ON ADS.ADS_ID = [ADS Detail].ADS_ID) ON [Project Information].PROJECT_ID = [ADS Detail].PROJECT_ID) ON Employee.EMP_ID = ADS.EMP_ID
WHERE (((ADS.ADS_DATE)=[WHAT DATE?]) AND (([ADS Detail].PHASE_ID)<>1) AND (([Project Information].PROJECT_NUMBER)=[WHAT PROJECT?]));
So I need to take the categories and add the total time from everyone in that category.
Thank you in advance for you help.