dbTalk Databases Forums  

creating a report from a pivot table

comp.databases.ms-access comp.databases.ms-access


Discuss creating a report from a pivot table in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bipin
 
Posts: n/a

Default creating a report from a pivot table - 04-15-2009 , 02:28 PM






hello,
i am trying to create a sales report with
month column headers...
i can get the data to look right by viewing
the datasheet as a pivot table...
now i need to turn that pivot table into a
report.
i tried crosstab queries and about a mile
of vb code.
but i would really like to make reports
from my pivot table data.
thanks,
bipin

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: creating a report from a pivot table - 04-15-2009 , 02:44 PM






bipin wrote:

Quote:
hello,
i am trying to create a sales report with
month column headers...
i can get the data to look right by viewing
the datasheet as a pivot table...
now i need to turn that pivot table into a
report.
i tried crosstab queries and about a mile
of vb code.
but i would really like to make reports
from my pivot table data.
thanks,
bipin
I found this link to be helpful.
http://www.fmsinc.com/tpapers/access...hly/index.html


Reply With Quote
  #3  
Old   
bipin
 
Posts: n/a

Default Re: creating a report from a pivot table - 04-16-2009 , 03:31 PM



i had found the link and have found it to be of great help.
http://www.fmsinc.com/tpapers/access...hly/index.html

crosstab querys will accomplish what i need; however
they are just as messy as a wad of vb code
( which is how the reports are currently being generated.)
they are not easy to change, fix, or even look at.

pivot tables are simple enough for the end user to edit.
so i can provide each user the ability to construct a
custom version of each report.

i am still hoping there is some simple way to generate
a report from a pivot table. otherwise i am probably going
to have to make an elaborate report builder. then i am
gonna have to split every row of data into their own separate
subreports and that is going to obsfurcate my program even
more.

i don't want to give the impression that i am ungrateful.
i am just looking for a little reassurance.

thank you for your reply "Salad"
b

Reply With Quote
  #4  
Old   
lyle fairfield
 
Posts: n/a

Default Re: creating a report from a pivot table - 04-16-2009 , 04:28 PM



On Apr 16, 4:31*pm, bipin <bipinbi... (AT) gmail (DOT) com> wrote:

Quote:
i am still hoping there is some simple way to generate
a report from a pivot table.
Perhaps there is something I don't understand here. A pivot table,
TTBOMK is not t table at all but a query or view of data with the rows
and columns transformed. This is accomplished through sql. Typically
the sql is saved as a query (by those who save queries). A saved query
can be used as the recordsource for a report; so can an sql string.
It's a long time since I've done this with JET, (if i ever did it).
But with SQL Server and Access 2007 one selects the View, the Create
section of the toilet paper (sorry, of course, I meant "ribbon") and
clicks on Report and Presto, a clumsy, inefficient, bloated report
pops right up on the screen. No???????????


Reply With Quote
  #5  
Old   
Phil Stanton
 
Posts: n/a

Default Re: creating a report from a pivot table - 04-16-2009 , 05:00 PM



Certainly in Access 2000 there is a wizard to help create the crosstab
query.

You may need to create 1 crosstab query for the body (Salesmens names??? and
monthly turnover???) and a second crosstab query for the monthly totals.
Then a Union Query combines these 2 for the final result. If your report is
to be names + 12 monthly columns, then life is very simple. If you want a
variable no of columns to suit only those months that have data, then you
get into quite heavy Vb

Phil

"lyle fairfield" <lyle.fairfield (AT) gmail (DOT) com> wrote

On Apr 16, 4:31 pm, bipin <bipinbi... (AT) gmail (DOT) com> wrote:

Quote:
i am still hoping there is some simple way to generate
a report from a pivot table.
Perhaps there is something I don't understand here. A pivot table,
TTBOMK is not t table at all but a query or view of data with the rows
and columns transformed. This is accomplished through sql. Typically
the sql is saved as a query (by those who save queries). A saved query
can be used as the recordsource for a report; so can an sql string.
It's a long time since I've done this with JET, (if i ever did it).
But with SQL Server and Access 2007 one selects the View, the Create
section of the toilet paper (sorry, of course, I meant "ribbon") and
clicks on Report and Presto, a clumsy, inefficient, bloated report
pops right up on the screen. No???????????




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.