CharlieMike73
Programmer
Can someone please help me convert this following MS Access SQL Query into a Query to be used on a VB-Script ASP page.
Or at least direct me to some program/site/tutorials that will help me.
I am trying to create the web page in Macromedia Dreamweaver MX, but get an error if I try to past the SQL from Access into the SQL Select statement.
Any help is appreciated!
Thank you,
Charlie
MS Access Code Below:
Or at least direct me to some program/site/tutorials that will help me.
I am trying to create the web page in Macromedia Dreamweaver MX, but get an error if I try to past the SQL from Access into the SQL Select statement.
Any help is appreciated!
Thank you,
Charlie
MS Access Code Below:
Code:
SELECT
DBO_EMPLOYEE.LAST_NAME,
DBO_EMPLOYEE.FIRST_NAME,
Sum(DBO_WORK_REPORT_LABOR.REPORTED_HOURS)
AS SumOfREPORTED_HOURS
FROM
DBO_EMPLOYEE
INNER JOIN (DBO_DAILY_WORK_REPORT INNER JOIN DBO_WORK_REPORT_LABOR
ON DBO_DAILY_WORK_REPORT.DWR_SYS_ID = DBO_WORK_REPORT_LABOR.DWR_SYS_ID)
ON DBO_EMPLOYEE.EMP_ID = DBO_WORK_REPORT_LABOR.EMP_ID
WHERE
(((DBO_DAILY_WORK_REPORT.DWR_DATE)
Between [Type Beginning Date:] And [Type Ending Date:])
AND
((DBO_EMPLOYEE.UNIT_ID)>=5000
And
(DBO_EMPLOYEE.UNIT_ID)<6000))
GROUP BY
DBO_EMPLOYEE.LAST_NAME,
DBO_EMPLOYEE.FIRST_NAME,
DBO_EMPLOYEE.EMP_ID
HAVING
(((Sum(DBO_WORK_REPORT_LABOR.REPORTED_HOURS))<40));