I am trying to access 2 different server DB's but consistently get error messages trying to access the second DB.
One DB is ORACLE the other ACCESS.
After accessing ORACLE I can no longer access ACCESS and if I retrieve from ACCESS first, I cannot retrieve from ORACLE.
Stepping through each option works fine provide I close all open workbooks prior to attempting access to the other.
Individually the connections and reading of fields within the tables is working as expected.
When trying to retrieve from ACCESS after ORACLE I get a '1004 error'. Trying ORACLE after Access I get a 'Hang & Restart Excel' message or Error 'The object Invoked Has Been Disconnected.....' which results in a hang!
I have tried calls from another workbook, connection strings, reducing the DB calls to a minimum, accessing ACCESS before ORACLE, Visa Versa, all fail.
I need some real help.
Thanks to this who can help.
Connection String to ORACLE
Connection String to ACCESS
One DB is ORACLE the other ACCESS.
After accessing ORACLE I can no longer access ACCESS and if I retrieve from ACCESS first, I cannot retrieve from ORACLE.
Stepping through each option works fine provide I close all open workbooks prior to attempting access to the other.
Individually the connections and reading of fields within the tables is working as expected.
When trying to retrieve from ACCESS after ORACLE I get a '1004 error'. Trying ORACLE after Access I get a 'Hang & Restart Excel' message or Error 'The object Invoked Has Been Disconnected.....' which results in a hang!
I have tried calls from another workbook, connection strings, reducing the DB calls to a minimum, accessing ACCESS before ORACLE, Visa Versa, all fail.
I need some real help.
Thanks to this who can help.
Connection String to ORACLE
Code:
With ActiveSheet.ListObjects.Add(SourceType:=0, Source:=Array(Array( _ "ODBC;DSN=ORACLE_SVR;UID=******;PWD=******;DBQ=A11;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;BTD=F;BNF=F;BAM=IfAllSucce" _
), Array( _
"ssful;NUM=NLS;DPM=F;MTS=T;MDI=F;CSR=F;FWC=F;FBS=64000;TLO=O;MLD=0;ODA=F;")), _
Destination:=Range("$A$1")).QueryTable
.CommandText = Array( _
Connection String to ACCESS
Code:
With ActiveSheet.ListObjects.Add(SourceType:=0, Source:= _ "ODBC;DSN=ProntoDSN;UID=****;PWD=****;", Destination:=Range("$A$3")). _
QueryTable
.CommandText = Array( _
"SELECT fms_con_note_header.cn_avail_date, fms_manifest.manif_nbr, fms_con_note_header.