Will a query like this on a recordset work
rs.open ‘select * from table where vd=1; update table set vd1 = 1 where vd=2 or vd=3;’
or is there anything wrong
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It won’t work – you’ll have to execute them as separate commands
Presumably you’ve declared
rsas a recordset, so you can use that to return theSELECTstatement results.I would use a SQL command to execute the second statement.