Yes, of course it is on server, as that code will not be impacted by what browser is in use.
I don't think we can diagnose the problem from that small fragment of code.
Are you sure that the error is coming from the rs.Open line and not from the next line (that you don't show)?
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.