Can't see a reason why this would cause this behavior.
You might want to avoid using your magic number s (e.g. rs_o.Open sql,ConnectTo,3,3) to make the code more readable. Check out this:
http://www.adopenstatic.com/faq/800a0bb9step2.asp for more info.
rs_o.Open sql,ConnectTo,adOpenStatic,adLockPessimistic ( or whatever the number mean)
is much easier to understand than
rs_o.Open sql,ConnectTo,3,3
To find out what is causing the problem, create a copy of the page, remove anything you don't need and then one by one add your code block back in.
Right now, the code is, as you said yourself, lousy formatted which makes it hard to read.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.