I have another problem with getting the correct results in my counter.
what I would like to happen is if the questionid in one table matches the questionid in a second table then i want to add 2 to the counter and then get the total at the end of the loop.
But what is actually happening is I am getting the total count of the actual questionid.
so i am getting 1+2+3+4 instead of 2+2+2+2
this is my code below
QUESTIONS=0
DO While not rt.EOF
O_questionID = cint(trim(rt("oQuestionID")))
if O_questionID = P_questionID then
question=question+2
else
question = question+2
end if
rt.movenext
loop
thanks
what I would like to happen is if the questionid in one table matches the questionid in a second table then i want to add 2 to the counter and then get the total at the end of the loop.
But what is actually happening is I am getting the total count of the actual questionid.
so i am getting 1+2+3+4 instead of 2+2+2+2
this is my code below
QUESTIONS=0
DO While not rt.EOF
O_questionID = cint(trim(rt("oQuestionID")))
if O_questionID = P_questionID then
question=question+2
else
question = question+2
end if
rt.movenext
loop
thanks