instead of this
Code:
RS.open "Select * from table where mystringfield ='" & StringVariable & "'", Connection
I would use...
Code:
quote = chr(34)
RS.open "Select * from table where mystringfield =" & quote & StringVariable & quote, Connection
otherwise you can have problems with words that have ' in them...
NOTE: I am not certain that 34 is the correct chr code... but it is pretty close...