For i=0 to 20
rsWishList.movefirst
rsWishList.Find "Part_Number = '" & Cstr(Request("TT" & i)) & "'"
if rsWishList.BOF or rsWishList.EOF then
*******DO NOTHING********
else
response.write(Request("TT" & i))
rsWishList("TT_Number") = Clng(i)
rsWishList.update
end if
next
For some reason, I can't get IF NOT to work, in which case I could reverse
things.
Thanks for the help ... again.
else
response.write(Request("TT" & i))
rsWishList("TT_Number") = Clng(i)
rsWishList.update
end if
Or only use the fork that you're interested in:
if NOT (rsWishList.BOF or rsWishList.EOF) then
response.write(Request("TT" & i))
rsWishList("TT_Number") = Clng(i)
rsWishList.update
end if
-K
"Renee Fekete" <m...@nospam.com> wrote in message
news:uMz3kcC3BHA.2156@tkmsftngp07...
"Kit" <k...@smallfoxx.comnospam> wrote in message
news:eR#G6iC3BHA.2228@tkmsftngp07...
Not should work, like this:
if not(rsWishList.BOF or rsWishList.EOF) then
response.write(Request("TT" & i))
rsWishList("TT_Number") = Clng(i)
rsWishList.update
end if
If not ;-)
if rsWishList.BOF or rsWishList.EOF then
else
response.write(Request("TT" & i))
end if
- or -
if rsWishList.BOF or rsWishList.EOF then
' do nothing
else
response.write(Request("TT" & i))
end if
--
torgeir
' do nothing
--
Dr.X
"Renee Fekete" <m...@nospam.com> wrote in message
news:uMz3kcC3BHA.2156@tkmsftngp07...
"Dr.X" <nospam...@rxp.com> wrote in message
news:GJ4r8.66585$y26.14...@typhoon.tampabay.rr.com...
if rsWishList.BOF and rsWishList.EOF then
response.write(Request("TT" & i))
rsWishList("TT_Number") = Clng(i)
rsWishList.update
end if
Boolean lesson of the day:
not (A or B) = A and B
A or B = not (A and B)
"chris" <cpa...@REMOVETHISPARTswatgear.com> wrote in message
news:eWugHHD3BHA.2736@tkmsftngp03...
Analysing the "> Boolean lesson of the day:"
>
> not (A or B) = A and B
if A is false and B is false, then
not (false or false) = false and false
not (false) = false
true = false
>
Sounds like Arafat logic.
not (A or B) = (not A) and (not B)
A or B = not ((not A) and (not B))
The logic in your if statement is completely different from the logic that
was desired.
Ken
Dean <nob...@nowhere.com> wrote in message
news:a8ivis$s...@news.or.intel.com...
Example:
For i=0 to 20
rsWishList.movefirst
rsWishList.Find "Part_Number = '" & Cstr(Request("TT" & i)) & "'"
if rsWishList.BOF = False AND rsWishList.EOF = False then
response.write(Request("TT" & i))
rsWishList("TT_Number") = Clng(i)
rsWishList.update
end if
next
Mythran
"chris" <cpa...@REMOVETHISPARTswatgear.com> wrote in message
news:eWugHHD3BHA.2736@tkmsftngp03...