S
slescure
Hi - I'm new and have a simple question. from within a VBA procedure
w/in an Access db, i want to read another database (not access) and
dump records into an ACCESS table. I can successfully read the other
database:
Dim con As New ADODB.Connection
Dim rec As New ADODB.Recordset
Dim strConnection As String
Dim strSQLQuery As String
Dim objField As ADODB.Field
Dim lOffset As Long
Dim temp As String
strConnection = "DSN= MyFiles;PROMPT=2"
strSQLQuery = "SELECT field names," & _
etc...
"FROM file name WHERE etc..
con.Open strConnection
rec.Open strSQLQuery, con
BUT - I have no idea how to get them into Access. Do I open anther
connection to the Accces file and do an INSERT? is there a better way?
Performance is a concern....
if anyone can provide some examples/guidance i would be most grateful.
thanks
w/in an Access db, i want to read another database (not access) and
dump records into an ACCESS table. I can successfully read the other
database:
Dim con As New ADODB.Connection
Dim rec As New ADODB.Recordset
Dim strConnection As String
Dim strSQLQuery As String
Dim objField As ADODB.Field
Dim lOffset As Long
Dim temp As String
strConnection = "DSN= MyFiles;PROMPT=2"
strSQLQuery = "SELECT field names," & _
etc...
"FROM file name WHERE etc..
con.Open strConnection
rec.Open strSQLQuery, con
BUT - I have no idea how to get them into Access. Do I open anther
connection to the Accces file and do an INSERT? is there a better way?
Performance is a concern....
if anyone can provide some examples/guidance i would be most grateful.
thanks