Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Running MS Queries

The only real pitfall is that the workbooks from which you read data
should be closed. if they are open, this leads to memory leaks and
crashes.

There are several good sites for learning to work with excel and ADO

Good samples:
www.erlandsendata.no

Good reference on all ado objects and methods:
http://www.devguru.com/Technologies/...ado_intro.html

lot's of documentation on connection strings:
http://www.able-consulting.com/ADO_Conn.htm


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?TUs=?=" wrote:

Have done some VBA/Access work, new to VBA/Excel

Would like to run queries (SQL) using Excel ranges and return the
results to a new spreadsheet. Are there any pitfalls I should be
aware of before I get started ?

Thanks,
Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Running MS Queries

keepITcool wrote ...

The only real pitfall is that the workbooks from which you read data
should be closed. if they are open, this leads to memory leaks and
crashes.


The workaround for this bug is simple: save the source worksheets to a
new workbook, save and close it, then query the closed workbook.

I'd say there was another common pitfall: the 'mixed data types'
scenario:

http://www.dicks-blog.com/excel/2004...al_data_m.html

There are several good sites for learning to work with excel and ADO


I don't think any of those links discuss the memory leak bug or give
an example of the workaround, so try this one:

http://groups.google.com/groups?selm...g .google.com

Jamie.

--
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
Open all Excel spreadsheets/fles before running queries Fredrik Excel Discussion (Misc queries) 0 April 30th 10 11:01 AM
Web queries Heine Excel Worksheet Functions 2 December 7th 06 02:43 PM
web queries... Dave F Excel Discussion (Misc queries) 2 August 25th 06 02:15 AM
Web Queries Gary Smith Excel Discussion (Misc queries) 0 September 14th 05 07:58 PM
Web Queries Alistair[Data#3] Excel Discussion (Misc queries) 0 May 20th 05 12:39 AM


All times are GMT +1. The time now is 03:41 PM.

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

About Us

"It's about Microsoft Excel"