webdork
asked on
ASP Run Loop Twice
I want to run a loop twice. I know it would be more elegant to do all action in one loop but I'm struggling with the syntax and I need the same record set further down the code. Is the first loop stopping the second?
While (NOT rsAgents.EOF)
'Do Action
rsAgents.MoveNext()
Wend
While (NOT rsAgents.EOF)
'Do another Action
rsAgents.MoveNext()
Wend
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Triple post - I know its naughty - sorry :(
'This will take you back up to the top line of your code
SHOULD BE
'This will take you to the first result in your file/resultset - not the first line of your code.
Ben
'This will take you back up to the top line of your code
SHOULD BE
'This will take you to the first result in your file/resultset - not the first line of your code.
Ben
ASKER
Too easy!
rsAgents.MoveFirst() did the trick.
Thanks.
rsAgents.MoveFirst() did the trick.
Thanks.
ASKER
Oh Goody
Ben