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 / Reports / Printing / October 2004

Tip: Looking for answers? Try searching our database.

Report from cross-tab

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TD11 - 14 Oct 2004 17:23 GMT
I create a table that contains sales data from our different stores. The
table will contain data from different stores depending on the limits applied
when the table is built.

I want to use a cross-tab query to display the data in a comparative layout
with each store being a unique column. Because the data in the table can
change, so can the column headings in my cross-tab.

How can I write a single report that will display the results of the
cross-tab?
Allen Browne - 14 Oct 2004 18:01 GMT
Provide enough columns on the report the the maximum number of stores you
envisage ever needing.

Save the report with no RecordSource, and nothing in the Control Source of
your text boxes.

In the Open event of the report, open a recordset into your lookup table of
stores. Use that to build a SQL statement string, and assign to your
report's RecordSource. Then assign the ControlSource of the text boxes as
well, keeping the unused ones hidden, and adjusting the Width and Left
properties so they are spaced appropriately across the page.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I create a table that contains sales data from our different stores. The
> table will contain data from different stores depending on the limits
[quoted text clipped - 8 lines]
> How can I write a single report that will display the results of the
> cross-tab?
 
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.