View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] fokrulkhan@googlemail.com is offline
external usenet poster
 
Posts: 1
Default 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