C
Craig Hornish
I have a few reports that use a crosstab query that can change the column
headings depending on different criteria.
The standard way that this is done is that the recordsource that is in the
properties window is also as a recordset when the form is opened, and that
"recordset" is used to populate columns, and the duplication of the
recordsourse is used so that the detail lines, and groupings will go through
each line.
Two related problems are that recordsource gets evaluated each time when
you:
switch to design view and run the report- Did I mention I have a
complicated Crosstab - 20 seconds to more than a minute on various reports
plus the time for the recordset to evaluate.
In a simpler report I have solved the recordsource problems by having NO
recordsource and using the detail Print section setting the MoveNext,
PrintSection, and MoveLayout and setting them appropriately to print out the
everything in the recordset. But in these I need to print a group
eading. -
Question 1 - In this situation how can I force the Group header to
print?
That is the most desirable solution, but a couple alternate solutions are ;
Question 2 - Can I assign a Crosstab Query in SQL as a recordsource? and
How?
I have tried taking the SQL text from the crosstab and get an
error "Cannot use the crosstab of a non-fixed column as a subquery"
Or
Question 3 - Can I stop Access from evaluating the recordsource in
design view.
Thanks
Craig Hornish
headings depending on different criteria.
The standard way that this is done is that the recordsource that is in the
properties window is also as a recordset when the form is opened, and that
"recordset" is used to populate columns, and the duplication of the
recordsourse is used so that the detail lines, and groupings will go through
each line.
Two related problems are that recordsource gets evaluated each time when
you:
switch to design view and run the report- Did I mention I have a
complicated Crosstab - 20 seconds to more than a minute on various reports
plus the time for the recordset to evaluate.
In a simpler report I have solved the recordsource problems by having NO
recordsource and using the detail Print section setting the MoveNext,
PrintSection, and MoveLayout and setting them appropriately to print out the
everything in the recordset. But in these I need to print a group
eading. -
Question 1 - In this situation how can I force the Group header to
print?
That is the most desirable solution, but a couple alternate solutions are ;
Question 2 - Can I assign a Crosstab Query in SQL as a recordsource? and
How?
I have tried taking the SQL text from the crosstab and get an
error "Cannot use the crosstab of a non-fixed column as a subquery"
Or
Question 3 - Can I stop Access from evaluating the recordsource in
design view.
Thanks
Craig Hornish