I am trying to link to oracle tables using VBA. I can link to the oracle tables manually but when I try to use the TransferDatabase method it doesn't work. Here is my code:
When I run this, I get a run-time error 3151; ODBC connection failed.
I am running MS Access 2010. Can someone please tell me what I'm doing wrong?
Code:
DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=C:\Users\lewis.tarsha\Desktop\AutomationTool\ODBCs\ICRTPP;UID=RPT_GROUP;PWD=RPT_GROUP#1;SERVER=ICRTPP", acTable, "OFLC.STATUS", "Access_Status", False, False
When I run this, I get a run-time error 3151; ODBC connection failed.
I am running MS Access 2010. Can someone please tell me what I'm doing wrong?