Results 1 to 5 of 5

Thread: update

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    13

    update

    hello...please help me..does anybode have vb6 coding of updating records?

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: update

    Hi, is this VB6 code or VBscript?
    And records being a Database?

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    13

    Unhappy Re: update

    its vb6..yeah,the record is database..hope u can help me..

  4. #4
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: update

    Hi, this is the incorrect forum, but is generally the same anyway ..

    Make your connection, and if the connection is called objConn then something like this ..... variables in bold would be your table and field names etc ...

    Notice the Text field has a ' around the value .. while the Number field doesnt.

    objConn.Execute("Update myTable Set TxtField = '" & SomeVar1 & "', IntField = " & SomeInt & " Where id = 1")

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Posts
    13

    Re: update

    Thanks Rory..the Problem Settled..

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