M
Mike Will via AccessMonster.com
I am having trouble with this line in my sql statement.
IIf(IsNull(DSum("OTHours","tblOvertime","EmpID = " & tblEmployee.EmpID)),0)+
[OTHrsIn] AS OTBal
It puts nothing in the field of those records that should return some number.
So it's basically making them null values. When I was using Nz(DSum
("OTHours","tblOvertime","EmpID = " & tblEmployee.EmpID)),0)+[OTHrsIn] AS
OTBal I had no problems. But my ODBC driver will not recognize the function
Nz. That is why I am using IIf(IsNull).
Help would be appreciated. Thank You.
IIf(IsNull(DSum("OTHours","tblOvertime","EmpID = " & tblEmployee.EmpID)),0)+
[OTHrsIn] AS OTBal
It puts nothing in the field of those records that should return some number.
So it's basically making them null values. When I was using Nz(DSum
("OTHours","tblOvertime","EmpID = " & tblEmployee.EmpID)),0)+[OTHrsIn] AS
OTBal I had no problems. But my ODBC driver will not recognize the function
Nz. That is why I am using IIf(IsNull).
Help would be appreciated. Thank You.