W
WildThing
Hi,
Setup is this: An access 2000 db with linked oracle tables.
Situation is that 'Insert Into works fine if using Runsql to run the query'
- 'Select works if using the Cmd.Execute'
I cannot get an Insert Into (Table In DB) and Select (From Linked Oracle
Table) to work in the same code/query.
Any Ideas.
Dim conn As ADODB.Connection
Dim cmd As ADODB.Command
Dim rs As ADODB.Recordset
Set conn = New ADODB.Connection
connStr = "Pamis"
conn.Open "data source=Pamis; userID=xxx; password=yyy"
sqltext = "INSERT INTO
(App_Work_Item_No) Select App_Work_Item_No
From Loan_App;"
Set cmd = New ADODB.Command
cmd.CommandText = sqltext
cmd.ActiveConnection = conn
Set rs = New ADODB.Recordset
DoCmd.RunSQL (sqltext)
Set rs = cmd.Execute(sqltext)
Setup is this: An access 2000 db with linked oracle tables.
Situation is that 'Insert Into works fine if using Runsql to run the query'
- 'Select works if using the Cmd.Execute'
I cannot get an Insert Into (Table In DB) and Select (From Linked Oracle
Table) to work in the same code/query.
Any Ideas.
Dim conn As ADODB.Connection
Dim cmd As ADODB.Command
Dim rs As ADODB.Recordset
Set conn = New ADODB.Connection
connStr = "Pamis"
conn.Open "data source=Pamis; userID=xxx; password=yyy"
sqltext = "INSERT INTO
From Loan_App;"
Set cmd = New ADODB.Command
cmd.CommandText = sqltext
cmd.ActiveConnection = conn
Set rs = New ADODB.Recordset
DoCmd.RunSQL (sqltext)
Set rs = cmd.Execute(sqltext)