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 / November 2004

Tip: Looking for answers? Try searching our database.

Auto Formatting Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TD11 - 29 Oct 2004 16:00 GMT
I have a report based on a crosstab. The crosstab will return a varying
number of columns depending on the user-defined criteria. I want the report
to print all of, and only, the columns generated through the crosstab.

The column display data from individual stores, so depending on which stores
are selected by user input, the crosstab/report may have 1-10 columns.

This causes an error when I run the report because it cannot find a defined
fieldname.

Any quidance would be appreciated...
Duane Hookom - 30 Oct 2004 06:18 GMT
There is a sample that does this at
http://www.invisibleinc.com/divFiles.cfm?divDivID=4.

Signature

Duane Hookom
MS Access MVP

> I have a report based on a crosstab. The crosstab will return a varying
> number of columns depending on the user-defined criteria. I want the report
[quoted text clipped - 7 lines]
>
> Any quidance would be appreciated...
TD11 - 01 Nov 2004 18:44 GMT
Thanks for taking time to respond. This is example is close but not quite the
answer to the situation I'm facing. I have 58 stores and want to layout sales
data in a "trend" format with each store being a column. When I run the
report, I may want stores 1,2,3,4 and 5 one-time(ex#1), but the next time I
run it, I may want stores 34, 35 and 36(ex#2).

So, 1 is not always going to be the first column and it might be a 3 column
report one-time and 6 column report the next.

ex#1
                   store1        store2        store3        store4        
store5
Sales                100              50           250            125        
  310
Cost                   65              38           185              98      
    201

ex#2
                   store33       store34        store35
Sales                300               450             210
Cost                  215               345             141

If I understand your example, it would print "blank" columns for stores 1
thru 32 in ex#2. It is rare that I would generate the report for all 58
stores. Normally, we would filter it by our "districts" which comprise 5-8
store groups.

Ultimately, I could just create multiple reports forour most common
reporting parameters, but I wanted a single db that would/could produce any
sequential series of stores in a report.

> There is a sample that does this at
> http://www.invisibleinc.com/divFiles.cfm?divDivID=4.
[quoted text clipped - 13 lines]
> >
> > Any quidance would be appreciated...
Duane Hookom - 01 Nov 2004 20:04 GMT
I still the the Crosstab.MDB has a solution that only creates columns where
needed.

Signature

Duane Hookom
MS Access MVP

> Thanks for taking time to respond. This is example is close but not quite the
> answer to the situation I'm facing. I have 58 stores and want to layout sales
[quoted text clipped - 44 lines]
> > >
> > > Any quidance would be appreciated...
TD11 - 04 Nov 2004 15:58 GMT
I'll go back and look at it again. I'm sure you are right.

> I still the the Crosstab.MDB has a solution that only creates columns where
> needed.
[quoted text clipped - 53 lines]
> > > >
> > > > Any quidance would be appreciated...
 
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.