[Solved] Crosstab Query And Report Help
Here's my goal:
1) In an unbound report have multiple sub reports
2) Each subreport is bound to a select query which in turn is based on a crosstab. (The reason for this is to force all categories in the crosstab's Row Heading to appear, even if there is no value for that category, based on the content of a dummy table holding the full list of possible Row Heading categories.)
3) The crosstabs contain criteria parameters that reference Start Date and End Date text fields in a form (this way the user enters the start and end date parameters once without having multiple parameter prompts appear).
I have created all of the queries and when the final queries are run individually (as queries not via reports) they work perfectly.
Here are my road blocks:
1) I tried to create the sub reports in the unbound report using the sub report wizard. However when selecting the desired query none of the fields are shown in the Available Fields box. (This is true for all of the queries I'm trying to use.)
2) I then manually created a continuous report related to one of the desired queries from scratch. When run by itself as a report this report works perfectly.
3) I then used the sub report wizard to insert that newly created report into the unbound report. This worked fine in the main report's Design View.
4) When I try to see the main, unbound report in Report View, I get a warning that "You Can't use a pass-through query or a non-fixed-column crosstab query as a record source for a subform or subreport."
5) I tried using the initial crosstab query (prior using the select query to insert all of the row heading values) in the SubReport Wizard to create a subreport from that query. However, again, none of the fields appear in the Available Fields box.
How can I get around this? I have read that using temporary tables may work, but I've never used them before and am confused by what I've read. Plus I want to avoid the whole bloat problem since the end result--once it's complete--will be used in a split database.
Any help would be appreciated. Thanks.
Here's my goal:
1) In an unbound report have multiple sub reports
2) Each subreport is bound to a select query which in turn is based on a crosstab. (The reason for this is to force all categories in the crosstab's Row Heading to appear, even if there is no value for that category, based on the content of a dummy table holding the full list of possible Row Heading categories.)
3) The crosstabs contain criteria parameters that reference Start Date and End Date text fields in a form (this way the user enters the start and end date parameters once without having multiple parameter prompts appear).
I have created all of the queries and when the final queries are run individually (as queries not via reports) they work perfectly.
Here are my road blocks:
1) I tried to create the sub reports in the unbound report using the sub report wizard. However when selecting the desired query none of the fields are shown in the Available Fields box. (This is true for all of the queries I'm trying to use.)
2) I then manually created a continuous report related to one of the desired queries from scratch. When run by itself as a report this report works perfectly.
3) I then used the sub report wizard to insert that newly created report into the unbound report. This worked fine in the main report's Design View.
4) When I try to see the main, unbound report in Report View, I get a warning that "You Can't use a pass-through query or a non-fixed-column crosstab query as a record source for a subform or subreport."
5) I tried using the initial crosstab query (prior using the select query to insert all of the row heading values) in the SubReport Wizard to create a subreport from that query. However, again, none of the fields appear in the Available Fields box.
How can I get around this? I have read that using temporary tables may work, but I've never used them before and am confused by what I've read. Plus I want to avoid the whole bloat problem since the end result--once it's complete--will be used in a split database.
Any help would be appreciated. Thanks.
Last edited: