A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Crosstab Report Problem when data missing



 
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2007, 05:29 PM posted to microsoft.public.access.reports
Ynot
external usenet poster
 
Posts: 5
Default Crosstab Report Problem when data missing

I have a crosstab report that reports activity. The activity is by date on
the vertical axis and day of week on the horizontal axis.



My problem is that there is only occasional activity on Sunday. When there
is no activity on Sunday, I get an error when I run the report because there
are no entries for that column.



Is there any way to insure that all Horizontal columns are filled or
eliminated if there is no data?


  #2  
Old August 2nd, 2007, 06:43 PM posted to microsoft.public.access.reports
George Nicholson
external usenet poster
 
Posts: 791
Default Crosstab Report Problem when data missing

Open your crosstab query in design view. Right click up in the Table area
and select Properties (the dialog window should read Query Properties, not
Field Properties).

In Query Properties, set Column Headings to "Monday","Tuesday",..."Sunday"
This will force the query to always return those columns, *in that order*,
whether there is data for those values or not.

It will *only* return those columns, so be sure they are an *exact* match
for the data in your designated Column Heading field (i.e., use
"Mon","Tues"..."Sun" instead, if that's what your data returns).

Your query will now return a "Sunday" field, data or not, so your report
should display without errors.

HTH,




"Ynot" wrote in message
...
I have a crosstab report that reports activity. The activity is by date on
the vertical axis and day of week on the horizontal axis.



My problem is that there is only occasional activity on Sunday. When
there is no activity on Sunday, I get an error when I run the report
because there are no entries for that column.



Is there any way to insure that all Horizontal columns are filled or
eliminated if there is no data?




 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.