R
Randy
I have an Access 2003 database which contains a App.mdb, Data.mdb and a
linked Oracle database table.
The App.mdb has a simple form with one button that runs the following sub
(for testing I have removed all code down to this simple process):
=====
Private Sub btm_Append_Click()
Dim mSQLCmd As String
mSQLCmd = "INSERT INTO tbl_A SELECT Fld_1, Fld_2, Fld_3, Fld_4 FROM
ORA_table WHERE Fld_4='test'"
CurrentDb.Execute mSQLCmd
End Sub
=====
If I put the tbl_A table INSIDE the App.mdb the above code inserts 66,000+
different records from the Oracle table. This is what I want.
If I move the tbl_A table to Data.mdb and link to the table from App.mdb the
above code (with NO changes) inserts 66,000+ records ALL CONTAINING THE EXACT
SAME VALUES....or said differently it inserts the same one record 66,000+
times.
Has anyone seen this type of thing before?
We have several Access database that link to the Oracle database, so I know
that side is fine.
Thanks, Randy
linked Oracle database table.
The App.mdb has a simple form with one button that runs the following sub
(for testing I have removed all code down to this simple process):
=====
Private Sub btm_Append_Click()
Dim mSQLCmd As String
mSQLCmd = "INSERT INTO tbl_A SELECT Fld_1, Fld_2, Fld_3, Fld_4 FROM
ORA_table WHERE Fld_4='test'"
CurrentDb.Execute mSQLCmd
End Sub
=====
If I put the tbl_A table INSIDE the App.mdb the above code inserts 66,000+
different records from the Oracle table. This is what I want.
If I move the tbl_A table to Data.mdb and link to the table from App.mdb the
above code (with NO changes) inserts 66,000+ records ALL CONTAINING THE EXACT
SAME VALUES....or said differently it inserts the same one record 66,000+
times.
Has anyone seen this type of thing before?
We have several Access database that link to the Oracle database, so I know
that side is fine.
Thanks, Randy