Results 1 to 3 of 3

Thread: [RESOLVED] is there an "update-select statement"?

  1. #1

    Thread Starter
    Addicted Member jeanette_db's Avatar
    Join Date
    Oct 2005
    Location
    DC, Phil
    Posts
    215

    Resolved [RESOLVED] is there an "update-select statement"?

    i want to update a field in a certain table....

    here's my code:
    VB Code:
    1. Set Rs = con.Execute("select * from t_taxrate")
    2.     Do While Rs.EOF <> True
    3.         con.Execute "update A13029t set nature = '" & Rs!nature & "' where atc_code = '" & Rs!atc_code & "'"
    4.         Rs.MoveNext
    5.     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....
    Last edited by jeanette_db; May 22nd, 2006 at 12:34 AM. Reason: resolved

  2. #2
    Fanatic Member noielen's Avatar
    Join Date
    Nov 2005
    Location
    Cebu, Phil.
    Posts
    680

    Re: is there a "update-select statement" ?

    noister
    <advertising link removed by moderator>

  3. #3

    Thread Starter
    Addicted Member jeanette_db's Avatar
    Join Date
    Oct 2005
    Location
    DC, Phil
    Posts
    215

    Re: is there a "update-select statement" ?

    Quote Originally Posted by noielen
    eyh thanks! Got it... =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width