Below is my code....I am simply connecting one database to another via VBA. I cannot figure out how to take the records out from the recordset and put them in a table. Me stumped...
'create connection to another database
Dim RConn As ADODB.Connectio n
Dim rRecordset As New ADODB.Recordset
Dim RString As String
RString = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=C:\Docum ents and Settings\Dan\My Documents\db3.m db;"
Set RConn = New ADODB.Connectio n
RConn.Open RString
rRecordset.Open "OriginalTable" , RConn
If rRecordset.BOF And rRecordset.EOF Then
MsgBox "No Records"
Else
MsgBox "There are records"
End If
How do I take the data from the recordset and add it to a table? Thks in advance!
'create connection to another database
Dim RConn As ADODB.Connectio n
Dim rRecordset As New ADODB.Recordset
Dim RString As String
RString = "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=C:\Docum ents and Settings\Dan\My Documents\db3.m db;"
Set RConn = New ADODB.Connectio n
RConn.Open RString
rRecordset.Open "OriginalTable" , RConn
If rRecordset.BOF And rRecordset.EOF Then
MsgBox "No Records"
Else
MsgBox "There are records"
End If
How do I take the data from the recordset and add it to a table? Thks in advance!
Comment