Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default link ODBC connection to an Oracle database

I'm trying to run an SQL query on an Oracle database.
I've looked at some previous posts, but still have problems.

1. Dim conData as ADODB.Connection
gives error "User-defined type not defined"
Do I need an add-on or similar?

2. Also, could you give me sample of how to insert SQL code into Excel macro
after establishing connection?

Thanks
--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default link ODBC connection to an Oracle database

Dear Richard,

You probably forgot to add a reference to the ADODB library.

To not have to learn all the ADO stuff you can also use the SQL*XL
addin in which it is all done for you. You can simply record a macro
connecting through SQL*XL and the appropriate references are set for
you... and the code to connect will be fully generated!

Please have a look at SQL*XL at www.oraxcel.com/projects/sqlxl

Any questions, just post it on www.oraxcel.com/forums or get in touch
through the enquiries form at the website

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change database connection between live and test for external data Paul Excel Discussion (Misc queries) 5 February 27th 06 06:31 PM
Serial Letter- Connection with Excel database Vic1978 Excel Discussion (Misc queries) 1 December 13th 05 02:07 PM
Excel: How do I set up a cell to click it to link a database? jp@nes Excel Discussion (Misc queries) 1 March 18th 05 07:24 PM
I can I select cells in a template and link it to a database? group3 Excel Discussion (Misc queries) 1 December 31st 04 03:05 PM
ODBC Link to db with custom modules Adam Excel Discussion (Misc queries) 0 December 29th 04 01:05 PM


All times are GMT +1. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"