aruba
Programmer
- Sep 5, 2003
- 47
When I execute the query below in Access2003 I receive the above error however it works fine in Access97. Any suggestions for modifying it in Access 2003?
Thanks!
SELECT TEMPUS_PERIOD_ACTUALS.PA_PEREND_DT AS WEEK, Sum([TEMPUS_PERIOD_ACTUALS]![PA_REG_HRS]+[TEMPUS_PERIOD_ACTUALS]![PA_OT_HRS]) AS HOURS, Sum(TEMPUS_PERIOD_ACTUALS.PA_REG_HRS) AS PA_REG_HRS, Sum(TEMPUS_PERIOD_ACTUALS.PA_OT_HRS) AS PA_OT_HRS, TEMPUS_EMPLOYEE.EMP_EMPLOYEE_TYP
FROM TEMPUS_EMPLOYEE INNER JOIN (TEMPUS_ORG_WRKGRP_XREF INNER JOIN TEMPUS_PERIOD_ACTUALS ON TEMPUS_ORG_WRKGRP_XREF.OW_ORG_ID = TEMPUS_PERIOD_ACTUALS.PA_ORG_ID) ON (TEMPUS_PERIOD_ACTUALS.PA_EMP_ID = TEMPUS_EMPLOYEE.EMP_ID) AND (TEMPUS_EMPLOYEE.EMP_ORG_ID = TEMPUS_PERIOD_ACTUALS.PA_ORG_ID)
GROUP BY TEMPUS_PERIOD_ACTUALS.PA_PEREND_DT, TEMPUS_EMPLOYEE.EMP_EMPLOYEE_TYP
HAVING (((TEMPUS_PERIOD_ACTUALS.PA_PEREND_DT)=[Input week end date mm/dd/yyyy]));
Thanks!
SELECT TEMPUS_PERIOD_ACTUALS.PA_PEREND_DT AS WEEK, Sum([TEMPUS_PERIOD_ACTUALS]![PA_REG_HRS]+[TEMPUS_PERIOD_ACTUALS]![PA_OT_HRS]) AS HOURS, Sum(TEMPUS_PERIOD_ACTUALS.PA_REG_HRS) AS PA_REG_HRS, Sum(TEMPUS_PERIOD_ACTUALS.PA_OT_HRS) AS PA_OT_HRS, TEMPUS_EMPLOYEE.EMP_EMPLOYEE_TYP
FROM TEMPUS_EMPLOYEE INNER JOIN (TEMPUS_ORG_WRKGRP_XREF INNER JOIN TEMPUS_PERIOD_ACTUALS ON TEMPUS_ORG_WRKGRP_XREF.OW_ORG_ID = TEMPUS_PERIOD_ACTUALS.PA_ORG_ID) ON (TEMPUS_PERIOD_ACTUALS.PA_EMP_ID = TEMPUS_EMPLOYEE.EMP_ID) AND (TEMPUS_EMPLOYEE.EMP_ORG_ID = TEMPUS_PERIOD_ACTUALS.PA_ORG_ID)
GROUP BY TEMPUS_PERIOD_ACTUALS.PA_PEREND_DT, TEMPUS_EMPLOYEE.EMP_EMPLOYEE_TYP
HAVING (((TEMPUS_PERIOD_ACTUALS.PA_PEREND_DT)=[Input week end date mm/dd/yyyy]));