matrixknow
IS-IT--Management
- May 3, 2007
- 78
Hola,
My workbook gets his result from the recordset (from the query)
I need my columntitles. The names of my queryheadings are changeable (it is a crosstab which show the months and these are not fixed in this case). Can I retrieve the column heads along my recordset ? Below is not working.
My workbook gets his result from the recordset (from the query)
I need my columntitles. The names of my queryheadings are changeable (it is a crosstab which show the months and these are not fixed in this case). Can I retrieve the column heads along my recordset ? Below is not working.
Code:
xlWorkSheet.Cells(iRow, iCol) = rst.Fields(iFld).NAME