Dim Cnn As ADODB.Connection
Dim ConnectString As String
Dim Rs As New ADODB.Recordset
Dim strsql As String
' 打开数据库
Set Cnn = New ADODB.Connection
ConnectString = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\数据库\数据存储.mdb;persist Security Info=False;"
Cnn.Open ConnectString
Set Rs = New ADODB.Recordset
Rs.AddNew
Rs = Cnn.Execute"select * into 数据导入 from d:\数据"
Rs.Update
Cnn.Close '*****************切断连接
Set Cnn = Nothing
End Function[em06][em06][em06]作者: fan0217 时间: 2006-12-9 04:03
Public Function CopyRecord()
On Error GoTo Err_CopyRecord
Dim connSour As New ADODB.Connection
Dim connTar As New ADODB.Connection
Dim rsSour As New ADODB.Recordset
Dim rsTar As New ADODB.Recordset
Dim strSourceSQL As String, strTargetSQL As String
Dim i As Integer
Dim strConnectString As String