Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hll hll is offline
external usenet poster
 
Posts: 6
Default Transposing data as it is being returned from an query

Hi..

I am quering an oracle table which returns 1 row of 5 data elements. I want
to display it horizontally (say in cells A1:A5). I know I can transpose it
but I was wondering if there was a way I could do the conversion to a
vertical list without having to first put it somewhere on the worksheet and
then doing the transpose operation?

I apologize for being such a rookie but your help would greatly be
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Transposing data as it is being returned from an query

You could transpose an array that you got from the recordset with GetRows.
Or you could transpose the recordset itself, although that might be a bit
more tricky then transposing the array.
Principle will be the same for both, just loop through the array or
recordset, swapping elements.
Note that an array produced by GetRows is already transposed compared to the
database source data.

RBS


"hll" wrote in message
...
Hi..

I am quering an oracle table which returns 1 row of 5 data elements. I
want
to display it horizontally (say in cells A1:A5). I know I can transpose it
but I was wondering if there was a way I could do the conversion to a
vertical list without having to first put it somewhere on the worksheet
and
then doing the transpose operation?

I apologize for being such a rookie but your help would greatly be
appreciated.


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
Query returned more data than will fit on a worksheet Carrie Excel Worksheet Functions 6 May 6th 23 07:44 PM
Query returned more data than will fit on a worksheet Mike H. Excel Discussion (Misc queries) 0 July 26th 07 08:38 PM
This query returned no data Tjeerd Excel Worksheet Functions 0 September 22nd 05 10:00 PM
Waiting for data to be returned from Microsoft Query bclakey Excel Discussion (Misc queries) 0 July 1st 05 12:36 AM
The Web query returned no data [email protected] Excel Programming 1 February 9th 05 08:06 PM


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