Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Multiple External Data Returns

I have an SQL statement that return 3 sets of data to an SQL editor. Each
Statement is separated by a semi-colon. Not all statements have equal titles
or columns. Is there a way to return the three sets in one get external Data
action or do i have to loop through the SQl three time?

My code currently builds the SQL Statement from start to finish and runs
fine for standard returns, but only lists the data return for the first data
set. Is this a limitation with Excel or can I return all 3 data sets in one
shot? In other words do i need to code some sort of looping?

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 145
Default Multiple External Data Returns

How are you running the SQL ?
ADO ?
http://www.freevbcode.com/ShowCode.asp?ID=3058

Tim


"Candyman" wrote in message
...
I have an SQL statement that return 3 sets of data to an SQL editor. Each
Statement is separated by a semi-colon. Not all statements have equal
titles
or columns. Is there a way to return the three sets in one get external
Data
action or do i have to loop through the SQl three time?

My code currently builds the SQL Statement from start to finish and runs
fine for standard returns, but only lists the data return for the first
data
set. Is this a limitation with Excel or can I return all 3 data sets in
one
shot? In other words do i need to code some sort of looping?

Thanks!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Multiple External Data Returns

OH I see.... what I am fooking for is :
SQL1) count cows, horses and pigs in Ariz
SQL2) count houses, cars in OHIO
SQL#) count people in USA

Return these counts on the same data page, one SQL dataset below the other.
I can get a single (multi record) data set fine. I need to get 3 separate
data sets.

"Tim" wrote:

How are you running the SQL ?
ADO ?
http://www.freevbcode.com/ShowCode.asp?ID=3058

Tim


"Candyman" wrote in message
...
I have an SQL statement that return 3 sets of data to an SQL editor. Each
Statement is separated by a semi-colon. Not all statements have equal
titles
or columns. Is there a way to return the three sets in one get external
Data
action or do i have to loop through the SQl three time?

My code currently builds the SQL Statement from start to finish and runs
fine for standard returns, but only lists the data return for the first
data
set. Is this a limitation with Excel or can I return all 3 data sets in
one
shot? In other words do i need to code some sort of looping?

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
External web Data Multiple Sites colin Excel Discussion (Misc queries) 2 July 20th 09 11:25 AM
Getting external data from multiple excel workbooks Dean C Excel Worksheet Functions 3 January 3rd 07 01:24 PM
How do I get multiple data returns from one drop down box? Tracey Excel Discussion (Misc queries) 1 October 26th 06 08:21 PM
Need advice : consolidating data from multiple CSV files in Excel - External data handling Matthieu Gaillet Excel Programming 0 December 1st 05 09:02 AM
external data from multiple sources lou sanderson Excel Programming 0 May 20th 05 07:21 PM


All times are GMT +1. The time now is 12:17 AM.

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"