Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tc tc is offline
external usenet poster
 
Posts: 1
Default Is it possible write a self-defined function in excel that connect to SQL server to get data?

I have tried to write ADODB connection in VBA Editor...
but it seems that it can recognize those key work in ADODB...

Any good reference / link about this suggest?
thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is it possible write a self-defined function in excel that connect to SQL server to get data?

in the VBE you need to go to Tools=References and select the appropriate
ADO library that defines ADODB.

--
Regards,
Tom Ogilvy

"tc" wrote in message
...
I have tried to write ADODB connection in VBA Editor...
but it seems that it can recognize those key work in ADODB...

Any good reference / link about this suggest?
thanks.




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
How to connect the Excel 2007 in SQL Server 2005? davidshen Excel Worksheet Functions 0 March 24th 08 02:11 AM
Connect to OPC / DDE server Critcho Excel Worksheet Functions 0 December 6th 07 02:18 AM
i want to connect excel with sql server 2000 as database with macr khurram saddique Excel Discussion (Misc queries) 2 February 18th 05 11:09 AM
connect to an oracle server Bill Li Excel Programming 0 August 14th 03 04:31 AM


All times are GMT +1. The time now is 02:33 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"