iknowkungfu
Registered User.
- Local time
- Today, 23:14
- Joined
- Jan 17, 2006
- Messages
- 24
I need to generate reports that are based on crosstab queries.
In total, if they were manually created, I would need 180 crosstabs. This is impractical, inflexible and bad design. And insane.
There will be approx 18 different reports with 10 different crosstabs in each. The crosstabs have the same row headings, column headings and data, but will be sourced from different underlying queries. By which I mean the query on which the crosstab is based.
There must be a way to allow different queries or different crosstabs to be specified at runtime. I've found out that apparently you can't specify field-names at runtime without VBA...
I've looked at example VBA code that does something sort of similar (Dynamic Crosstab queries in reports), but it's beyond my understanding.
Failing that, is there some way to automatically write the necessary 180 crosstab queries without doing it the hard way?
In total, if they were manually created, I would need 180 crosstabs. This is impractical, inflexible and bad design. And insane.
There will be approx 18 different reports with 10 different crosstabs in each. The crosstabs have the same row headings, column headings and data, but will be sourced from different underlying queries. By which I mean the query on which the crosstab is based.
There must be a way to allow different queries or different crosstabs to be specified at runtime. I've found out that apparently you can't specify field-names at runtime without VBA...
I've looked at example VBA code that does something sort of similar (Dynamic Crosstab queries in reports), but it's beyond my understanding.
Failing that, is there some way to automatically write the necessary 180 crosstab queries without doing it the hard way?