crosstab reports

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a report based on a crosstab query but the report keeps
hanging.
Does anyone have any ideas what the problem is?
 
Several potential issues.

An important one is that the actual field names generated by the crosstab
will depend on the data. Therefore Access has to actually run the query,
even to figure out what field names you need for report design view. Worse,
some of the fields you expected it to generate may not have data, and so the
column is not in the query and the report just shows an error. To avoid
these problems set the Column Headings property of the crosstab, so it knows
the names of the column headings ahead of time.

That issue is worsened if Name AutoCorrect is turned on, because Access must
also dynamically track the names of objects with any previous names they may
have had. This is not only time-consuming, but Access is likely to get
completely confused if different things have had the same names. To avoid
this, uncheck the boxes under:
Tools | Options | General | Name AutoCorrect.
Then compact the database:
Tools | Database Utilities | Compact

If it is still slow or unstable after that, you may need to go a step lower,
and look at the crosstab itself.
 
Reports based on crosstab queries are inherently problematic. For one
thing, the column headings can potentially change every time it is run. On
my website are two examples that show a way around this problem:

"CrossTabReport.mdb" (created by me)
http://www.rogersaccesslibrary.com/download3.asp?SampleName=CrossTabReport.mdb

and
"Cross Tab" (created by Duane Hookom)
http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Cross Tab'


--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
Back
Top