Greetings all...
I'm trying to write a simple loop that will go through an 200 Access database to find a certain record
for some reason this code will ONLY stop when rs.EOF and NOT when the correct pid is found.. why is that?
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
I'm trying to write a simple loop that will go through an 200 Access database to find a certain record
Code:
pid = 0
do until pid = Request.QueryString("id") or rs.EOF
pid = rs("pid")
title = rs("title")
f_name = rs("filename")
rs.moveNext
loop
for some reason this code will ONLY stop when rs.EOF and NOT when the correct pid is found.. why is that?
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work