Results 1 to 3 of 3

Thread: Pivot Tables

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Pivot Tables

    can I create a pivot table directly from a database without having to export it into excel? YES or NO if Yes then how ?

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Pivot Tables

    Yes. Do a search for Cross-Tab query in your database's help file.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Re: Pivot Tables

    .XL.Sheets(1).PivotTableWizard SourceType:=1, SourceData:="'" & .XL.Sheets(1).Name _
    & "'!R1C1:R" & a + 1 & "C9", TableDestination:="", TableName:="PivotTable1"
    .XL.Sheets(1).PivotTables("PivotTable1").AddFields RowFields:=Array("SECTION_ID"), _
    ColumnFields:="FN_ENDING_DATE"

    what changes should I make in this code to use a database as the source and the result of a query as the data source ?

    because here the data being used is in an excel file and the data range is also known...help!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width