I'm probably just blind, but, here's the setup.
Paging through a recordset. Need to print only the records where the value of "total" is greater than the value of "notices". "total" comes from the recordset, and "notices" is from an HTML form. As such, the value of "total" will vary, while the value of "notices" will stay the same. Here's the code, pretty straight-forward:
while not RS.EOF
total = rs("total"
Response.Write total & ", " & notices
if total > notices then
Response.Write " yep<BR>"
else
Response.Write " nope<BR>"
end if
RS.MoveNext
wend
Here's an excerpt of the output:
...
1, 6 nope
1, 6 nope
1, 6 nope
1, 6 nope
7, 6 nope
...
"7, 6 nope"??? Last I checked, 7 was greater than 6.
Any advice is appreciated.
Paging through a recordset. Need to print only the records where the value of "total" is greater than the value of "notices". "total" comes from the recordset, and "notices" is from an HTML form. As such, the value of "total" will vary, while the value of "notices" will stay the same. Here's the code, pretty straight-forward:
while not RS.EOF
total = rs("total"
Response.Write total & ", " & notices
if total > notices then
Response.Write " yep<BR>"
else
Response.Write " nope<BR>"
end if
RS.MoveNext
wend
Here's an excerpt of the output:
...
1, 6 nope
1, 6 nope
1, 6 nope
1, 6 nope
7, 6 nope
...
"7, 6 nope"??? Last I checked, 7 was greater than 6.
Any advice is appreciated.