I get an error message saying:
"Invalid use of Is operator in query expression "
when i use the IS DBNULL in the following sql statement in asp.net:
SELECT SUM(tblDailyHrs.TotSchHrs) AS TotalSch, SUM(tblDailyHrs.TotActHrs) AS TotalAct,
SUM(tblDailyHrs.OverTime) AS TotalOt, SUM(tblDailyHrs.AddHrs) AS TotalAdd, SUM(tblDailyHrs.TotTkActHrs) AS TotTkActHrs, SUM(tblDailyHrs.TkOtHrs) as TotTkOtHrs
FROM tblDailyHrs
WHERE tblDailyHrs.CostCtr = "PA00012"
AND tblDailyHrs.PeriodID = "25-2008"
AND tblDailyHrs.EmpNo = "71445"
AND (tblDailyHrs.ActEstAdj = "Act"
OR tblDailyHrs.ActEstAdj Is DbNull )
;
i am using MS Access as the back end. What am i doing wrong and how can i correct it?
"Invalid use of Is operator in query expression "
when i use the IS DBNULL in the following sql statement in asp.net:
SELECT SUM(tblDailyHrs.TotSchHrs) AS TotalSch, SUM(tblDailyHrs.TotActHrs) AS TotalAct,
SUM(tblDailyHrs.OverTime) AS TotalOt, SUM(tblDailyHrs.AddHrs) AS TotalAdd, SUM(tblDailyHrs.TotTkActHrs) AS TotTkActHrs, SUM(tblDailyHrs.TkOtHrs) as TotTkOtHrs
FROM tblDailyHrs
WHERE tblDailyHrs.CostCtr = "PA00012"
AND tblDailyHrs.PeriodID = "25-2008"
AND tblDailyHrs.EmpNo = "71445"
AND (tblDailyHrs.ActEstAdj = "Act"
OR tblDailyHrs.ActEstAdj Is DbNull )
;
i am using MS Access as the back end. What am i doing wrong and how can i correct it?