Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is dbnull error in asp.net sql "Invalid user of IS operator" 1

Status
Not open for further replies.

greenbird

Technical User
Jul 24, 2003
10
CA
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?
 
check in forum701

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
ac3msm,

Your code modification to Is Null worked. Thanks a lot.

Regards,

greenbird
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top