fremark=""
do while not rsdoc.EOF
if trim(rsdoc.Fields("fsourcedocno"))=trno then 'Cod1
fremark=fremark&","&rsdoc.Fields("fsourcedocno")
else
if fremark<>"" then 'Cod2
response.Write("Hello, how are you")
response.end
end if
fremark=rsdoc.Fields("fsourcedocno")
end if
rsdoc.movenext
loop
Why I cann't get the "Hello, how are you" message if the Condition 1 is false? Can somebody help me to solve it Or change the logic inside..I think the fremark is not a empty string..
do while not rsdoc.EOF
if trim(rsdoc.Fields("fsourcedocno"))=trno then 'Cod1
fremark=fremark&","&rsdoc.Fields("fsourcedocno")
else
if fremark<>"" then 'Cod2
response.Write("Hello, how are you")
response.end
end if
fremark=rsdoc.Fields("fsourcedocno")
end if
rsdoc.movenext
loop
Why I cann't get the "Hello, how are you" message if the Condition 1 is false? Can somebody help me to solve it Or change the logic inside..I think the fremark is not a empty string..