Hi!
I have searched the forum and can't find anything that totally matches my issue. I've downloaded some code to try but it seems like it should be a simpler problem/fix....
I am creating 2 queries on which to base a report on. First a select query which I then use to create a crosstab which then is the basis for a table in
a report. I am getting a count of events that occur by Quarter (4 ), State region (5) and Category (2).
I'm using DatePart() to get the quarter and 3 tables are involved. The events I am counting are the number of records that occur (for example count of records in quarter 1, region1, category 1 etc...)- I am doing a count on a PK field.
The problem: If there are no records for region one, category 1, and quarter one it just doesn't show up in the query (I'm missing region 1, category 1 entirely from the crosstab) which makes the report look ugly. I've tried NZ() on the count of events in the initial query to try and force the region and category to show up even if no records are there but no dice.
I've included a very ugly version of the table as brought into word to try and illustrate the problem better - Obviously the formatting does not translate well when brought into word which is troubling.... Why does everything have to be so complicated dag-on-it!!
Anyway, any help would be greatly appreciated! Thanks in advance.
stephanie
I have searched the forum and can't find anything that totally matches my issue. I've downloaded some code to try but it seems like it should be a simpler problem/fix....
I am creating 2 queries on which to base a report on. First a select query which I then use to create a crosstab which then is the basis for a table in
a report. I am getting a count of events that occur by Quarter (4 ), State region (5) and Category (2).
I'm using DatePart() to get the quarter and 3 tables are involved. The events I am counting are the number of records that occur (for example count of records in quarter 1, region1, category 1 etc...)- I am doing a count on a PK field.
The problem: If there are no records for region one, category 1, and quarter one it just doesn't show up in the query (I'm missing region 1, category 1 entirely from the crosstab) which makes the report look ugly. I've tried NZ() on the count of events in the initial query to try and force the region and category to show up even if no records are there but no dice.
I've included a very ugly version of the table as brought into word to try and illustrate the problem better - Obviously the formatting does not translate well when brought into word which is troubling.... Why does everything have to be so complicated dag-on-it!!
Anyway, any help would be greatly appreciated! Thanks in advance.
stephanie