I have a sheet in Excel 2010 which pulls data in QueryTables from an Oracle database, connected via an ODBC DSN.
I need to take data from the spreadsheet and use it to update a table in the same Oracle database. I cannot do an update from a QueryTable, but that is the only connection method I have been able to get to work with the ODBC.
I have tried setting up a ADODB connection, but I am getting a
'Run-time error '-2147467259 (80004005'): Automation error Unspecified error Here is the code I used:
Sub Upload_Click() Dim cn As ADODB.Connection Set cn = New ADODB.Connection With cn .Provider = "MSDASQL" .ConnectionString = "DSN=xcognosD;" .Open End With cn.Close End Sub Added note, I am on Windows 7 using a 64 bit odbc driver, connecting to Oracle 11 database.