|
Hi guys i hope you can help.
I'm using this string in my asp page
SELECT SUM(Yr1FTE) as YR1FteTotal, sum(Yr2FTE) as YR2FteTotal, sum(Yr3FTE) as YR3FteTotal, sum(Yr4FTE) as YR4FteTotal, sum(Yr5FTE) as YR5FteTotal FROM tblStaffCostings Where costingId="&costingID
CostingId can change depending on what the user does.
The string works as it should it returns the totals if it finds any and nulls if it doesnt.
The nulls are my problem because this sql will return something i cant use the recordset.eof to see if it is blank. because a record of all nulls is still a recordset
I've tried using code such as
if (yr1ftetotal = "") then
yr1ftetotal = 1
end if
but it doesnt recognise that yr1total is ""
so my question is, Is there anyway in my string that i can convert the nulls to say a 0 or a 1 or if not what is the code for checking if a recordset isnull?
Last edited by higginbt : 05-19-2006 at 05:49 AM.
|