Hi,
I have a DB on a remote share that I want to update to a local DB
periodically. My plan is to create a VBA procedure and then trigger the
procedure a few times a day to the process is automated. My question is
how do I copy the contents of a Record set to a Table. This is what I
have so far:
Sub ImportDecap()
Dim Conn As New ADODB.Connectio n
Dim rst As New ADODB.Recordset
Dim strDB As String
strDB = "\\RemoteSVR\Re moteDir\MyDB.md b"
Conn.Open "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=" & strDB & ";"
rst.Open "SELECT * FROM t_journal_uploa d_data", Conn
'What I have tried is
Conn.Execute _
"INSERT INTO Table_in_Local_ DB VALUES " & rst.Fields(1)
But recieve an error so obviously I'm wrong. Has anybody any
suggestions of how this can be done?
Thanks
PC