I have a query which pulls the following fields from 3 related tables:
Stat_Date
StatType_Title
Stat_Data
The number of records this query will return will ALWAYS be 20 records.
I need to export this data to excel, specifically into a cell range as follows:
Stat_Date as the X axis (from cells B4:U4)
StatType_Title as the Y axis (from cells A5:Axx) <- note, Axx represents the last row - the number of StatTypes listed is unknown and could change
The above two fields are column and row headings. The Stat_Data field is the data which relates to the appropriate StateType_Title on the appropriate Stat_Date.
There will only ever be 1 record for each Stat_Date and StatType_Title.
So it kind of looks like a matrix, for example:
___________01/01/2009__02/01/2009__03/01/2009
StatType1__10____________20__________30
StatType2__200___________300_________400
StatType3__3000__________4000________5000
Hopefully I've explained this the best I can. Can anyone point me in the right direction?
Thanks.
Stat_Date
StatType_Title
Stat_Data
The number of records this query will return will ALWAYS be 20 records.
I need to export this data to excel, specifically into a cell range as follows:
Stat_Date as the X axis (from cells B4:U4)
StatType_Title as the Y axis (from cells A5:Axx) <- note, Axx represents the last row - the number of StatTypes listed is unknown and could change
The above two fields are column and row headings. The Stat_Data field is the data which relates to the appropriate StateType_Title on the appropriate Stat_Date.
There will only ever be 1 record for each Stat_Date and StatType_Title.
So it kind of looks like a matrix, for example:
___________01/01/2009__02/01/2009__03/01/2009
StatType1__10____________20__________30
StatType2__200___________300_________400
StatType3__3000__________4000________5000
Hopefully I've explained this the best I can. Can anyone point me in the right direction?
Thanks.