J
Jeff
In my asp script, i am using sql to get a sum. I understand if the row
doesn't contain a value, it is skipped. But the problem i am running into is
if there isn't a row that meets the criteria at all.
i have this
set wins8 = conn.execute("select sum(wins1) as wins_8 from matches_8ball
where username = '" & var & "'")
if not wins8.eof then
wins__8 = wins8.fields.item("wins_8").value
else
wins__8 = 0
end if
i thought that if it didn't find the '" & var & "' at all in the username
column, it should return a 0 value. but this isn't working as you can see
here.
http://pool.gig-gamers.com/all_stats2.asp
and since that isn't working, or any of the others like it, the table
contains blank spaces.
any ideas??
i guess i am trying to see if there is a way to maybe say... if wins__8 =
Nul or something
doesn't contain a value, it is skipped. But the problem i am running into is
if there isn't a row that meets the criteria at all.
i have this
set wins8 = conn.execute("select sum(wins1) as wins_8 from matches_8ball
where username = '" & var & "'")
if not wins8.eof then
wins__8 = wins8.fields.item("wins_8").value
else
wins__8 = 0
end if
i thought that if it didn't find the '" & var & "' at all in the username
column, it should return a 0 value. but this isn't working as you can see
here.
http://pool.gig-gamers.com/all_stats2.asp
and since that isn't working, or any of the others like it, the table
contains blank spaces.
any ideas??
i guess i am trying to see if there is a way to maybe say... if wins__8 =
Nul or something