Results 1 to 2 of 2

Thread: Connection to Connection Data Transfer

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    1
    I have two ADODB recordsets set up connected to two different databases one is Access 97 the other SQl Server 6.5.
    How can I transfer data from one recordset to the other, mainly SQL 6.5 to Access 97 using VB6 Code.

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Logic:

    rsAxs = recordset of access data
    cnSQL = connection to SQL server

    do until rsAxs.eof = true
    cnSQL.execute "Insert into mytable (field1, field2) Values (" & rsAxs.Fields("Field1").value & ", " & rsAxs.fields("Field2").value & ")"
    rsAxs.movenext
    loop

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