Results 1 to 5 of 5

Thread: Update with ADO

  1. #1

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Update with ADO

    How do you update with ADO. I can add, but i dont know how to update...
    My usual boring signature: Something

  2. #2
    New Member
    Join Date
    Feb 2007
    Location
    Phil
    Posts
    13

    Re: Update with ADO

    Just like when your deleting a record the only Deference it instead of rs.DELETE used rs.UPDATE

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Update with ADO

    If you are using ADO Code (I hope) rather than an ADODC bound control, then you would use the .Execute method of the connection object to perform action queries like UPDATE, DELETE, INSERT, etc.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Update with ADO

    Moved to Database Development forum

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Update with ADO

    Code:
    strsql = "Update table name here Set  field name here =  value here Where Key field here (PK) = a value here to point to the required record
    then use connection execute method:

    VB Code:
    1. conn.Execure strsql
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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