ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Creating Pivot Table from a DAO recordset (https://www.excelbanter.com/excel-programming/389579-creating-pivot-table-dao-recordset.html)

[email protected]

Creating Pivot Table from a DAO recordset
 
Hi,

I was wondering if you could create a pivot table using a dao record
set or setting the source data to a recordset

eg.

ssql = "SELECT * FROM [Table A]"

set rs = db.openrecordset(ssql)

wksPivot.PivotTableWizard SourceType:=xlDAORecordset,
SourceData:=rs.OpenRecordset

or sumething like that

Thanks

Fokrul



All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com