Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

VBA code to Pivot data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chase - 02 Sep 2005 16:39 GMT
What is the VBA code to set up a pivot on 2 columns of data from a Access
database as the standard pivot function does not provide the required result?
Douglas J Steele - 02 Sep 2005 19:00 GMT
I'm having a hard time visualizing a pivot on 2 columns. You need at least
3: one for the x axis, one for the y axis, and one to represent the
intersection. If nothing else, you could create a query that fills in the
number 1 on each row so that you get that 3rd column.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> What is the VBA code to set up a pivot on 2 columns of data from a Access
> database as the standard pivot function does not provide the required result?
Chase - 02 Sep 2005 19:34 GMT
I have 6 columns of data which are fixed and 2 that quire a pivot ie weeks
and volume per week. I only require subtotals on the 2 variables for one of
the fixed columns, hence my pivot problem.

> I'm having a hard time visualizing a pivot on 2 columns. You need at least
> 3: one for the x axis, one for the y axis, and one to represent the
[quoted text clipped - 4 lines]
> > database as the standard pivot function does not provide the required
> result?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.