akhazendar05
New member
- Joined
- Jul 11, 2012
- Messages
- 2
- Programming Experience
- 1-3
SELECT [Reporting Extract Ad Hoc].RITM_ID, [Gary Actuals].[BIRT Number], Sum([Gary Actuals].[Actual Hours]) AS [SumOfActual Hours], First([Reporting Extract Ad Hoc].RITM_ACTUAL_START_DATE) AS FirstOfRITM_ACTUAL_START_DATE, Last([Reporting Extract Ad Hoc].APPROVED_ACTUAL) AS LastOfAPPROVED_ACTUAL, Last([Reporting Extract Ad Hoc].DELIVERED_ACTUAL) AS LastOfDELIVERED_ACTUAL, Last([Reporting Extract Ad Hoc].ACTUAL_HOURS) AS LastOfACTUAL_HOURS, WorkingDays3(APPROVED_ACTUAL,LastOfDELIVERED_ACTUAL) AS Networkingdays
FROM [Gary Actuals] INNER JOIN [Reporting Extract Ad Hoc] ON [Gary Actuals].[BIRT Number]=[Reporting Extract Ad Hoc].RITM_ID
GROUP BY [Reporting Extract Ad Hoc].RITM_ID, [Gary Actuals].[BIRT Number], WorkingDays3([APPROVED_ACTUAL],[LastOfDELIVERED_ACTUAL])
ORDER BY [Reporting Extract Ad Hoc].RITM_ID;
This query did not have this function in there, so I added it and when I tried to run the query, it gave this error:
you tried to execute a query that does include the specified expressionWorkingDays3(APPROVED_ACTUAL,LastOfDELIVERED_ACTUAL) AS Networkingdays as a part of an aggregate function.
I have a table called Holidays, and the code for WorkingDays3 as well.
FROM [Gary Actuals] INNER JOIN [Reporting Extract Ad Hoc] ON [Gary Actuals].[BIRT Number]=[Reporting Extract Ad Hoc].RITM_ID
GROUP BY [Reporting Extract Ad Hoc].RITM_ID, [Gary Actuals].[BIRT Number], WorkingDays3([APPROVED_ACTUAL],[LastOfDELIVERED_ACTUAL])
ORDER BY [Reporting Extract Ad Hoc].RITM_ID;
This query did not have this function in there, so I added it and when I tried to run the query, it gave this error:
you tried to execute a query that does include the specified expressionWorkingDays3(APPROVED_ACTUAL,LastOfDELIVERED_ACTUAL) AS Networkingdays as a part of an aggregate function.
I have a table called Holidays, and the code for WorkingDays3 as well.