Hi,
I am new to access vba. i am trying to create a code to insert rows into Oracle Db via linked tables. I wanted to check if the row is inseted into my Oracle DB or not and so i am using Access RecordsAffected property of Database.
below is the code snippet i am using:
But i am getting the error as
Run-time error '3146' ODBC--Call failed.
can you please help me where i am doing wrong?
Appreciate your help
Regards,
-Dileep
I am new to access vba. i am trying to create a code to insert rows into Oracle Db via linked tables. I wanted to check if the row is inseted into my Oracle DB or not and so i am using Access RecordsAffected property of Database.
below is the code snippet i am using:
Code:
Dim myDb As dao.Database Dim strSQL As String Dim i As Integer strSQL = "INSERT INTO <Linked Table Name> values(---)" Set myDb = CurrentDb myDb.Execute strSQL, dbFailOnError i = myDb.RecordsAffected MsgBox (i)
Run-time error '3146' ODBC--Call failed.
can you please help me where i am doing wrong?
Appreciate your help
Regards,
-Dileep
Comment