Home » Category » Microsoft Visual Basic

Microsoft Visual Basic: is there an "update-select statement"?

104| Tue, 04 Dec 2007 10:18:00 GMT| jeanette_db| Comments (2)
i want to update a field in a certain table...

here's my code:
Set Rs = con.Execute("select * from t_taxrate")
Do While Rs.EOF <> True
con.Execute "update A13029t set nature = '" & Rs!nature & "' where atc_code = '" & Rs!atc_code & "'"
Rs.MoveNext
Loop

i want to lessen the number of lines in the program... "do while loop" may take some time... is there an "update-select statement"?
if there is, what's its syntax?

thanks in advance...

Keywords & Tags: update-select, statement, microsoft, visual basic, vb

URL: http://www.programmerbase.com/visual-basic/275009/
 
«« Prev - Next »» 2 helpful answers below.
visit this link (http://www.techonthenet.com/sql/update.php)

noielen | Mon, 03 Dec 2007 17:57:00 GMT |

visit this link (http://www.techonthenet.com/sql/update.php)

eyh thanks! Got it... =)

jeanette_db | Mon, 03 Dec 2007 17:58:00 GMT |

Microsoft Visual Basic Hot Answers

Microsoft Visual Basic New questions

Microsoft Visual Basic Related Categories