Excel output: Vertical instead of horizontal

Excel output: Vertical instead of horizontal

Post by millardgro » Thu, 01 Jun 2006 19:54:11


I have a query that returns a single row of summary data. I need to
export it to Excel when a user clicks a button. When it exports, I need
the output to run vertically rather than horizontally.

That is, instead of:
Header1 | Header2 | Header3 | Header4 | Header5 ... etc
Result1 | Result 2 | Result3 | Result4 | Result5 ... etc

I need:
Header1 | Result1
Header2 | Result2
Header3 | Result3
Header4 | Result4
Header5 | Result5
etc...

Can you suggest the best way to do this?

Thanks!

Scott
 
 
 

Excel output: Vertical instead of horizontal

Post by S2xhdHV » Thu, 01 Jun 2006 21:43:01

Create a Crosstab Query that transforms the table data to the format you need
and export the query using TransferSpreadsheet.