J
jmoore
Using several fields, I am trying to create a report that will provide a list
the all entries grouped by each field, in a vertical list instead of the
field names horizontally across the page. I based the report on a union
query which gave me the results I want, but with a couple of issues I don’t
know how to resolve.
1) I created a group header for Question. An error message in design view
of the report says this is invalid sorting and grouping. However, the data
does display in groups by question in print preview.
2) I am asked to enter a parameter value for A1aC when switching from
design view to print preview or report view. Would this be because there are
no entries for A1aC yet? There are other fields that also do not have any
entries yet. If I select OK, the report displays with the correct results
except for #3.
3) Many records will not have entries for some of the fields and these
display in the report as a blank line leaving LOTS of white space in the
report. Is there any way to ignore null values?
A sample of the SQL from the union query:
SELECT [qYr2ReviewSample].CNTYNAME, [qYr2ReviewSample].ReviewKey, "A1aC" as
Question, [A1aC] as Answer
FROM [qYr2ReviewSample]
UNION ALL
SELECT [qYr2ReviewSample].CNTYNAME, [qYr2ReviewSample].ReviewKey, "A1bC" as
Question, [A1bC] as Answer
FROM [qYr2ReviewSample]
UNION ALL
SELECT [qYr2ReviewSample].CNTYNAME, [qYr2ReviewSample].ReviewKey, "A2C" as
Question, [A2C] as Answer
FROM [qYr2ReviewSample];
In case it makes any difference, this report is a subreport linked by
CNTYNAME. Thank you.
the all entries grouped by each field, in a vertical list instead of the
field names horizontally across the page. I based the report on a union
query which gave me the results I want, but with a couple of issues I don’t
know how to resolve.
1) I created a group header for Question. An error message in design view
of the report says this is invalid sorting and grouping. However, the data
does display in groups by question in print preview.
2) I am asked to enter a parameter value for A1aC when switching from
design view to print preview or report view. Would this be because there are
no entries for A1aC yet? There are other fields that also do not have any
entries yet. If I select OK, the report displays with the correct results
except for #3.
3) Many records will not have entries for some of the fields and these
display in the report as a blank line leaving LOTS of white space in the
report. Is there any way to ignore null values?
A sample of the SQL from the union query:
SELECT [qYr2ReviewSample].CNTYNAME, [qYr2ReviewSample].ReviewKey, "A1aC" as
Question, [A1aC] as Answer
FROM [qYr2ReviewSample]
UNION ALL
SELECT [qYr2ReviewSample].CNTYNAME, [qYr2ReviewSample].ReviewKey, "A1bC" as
Question, [A1bC] as Answer
FROM [qYr2ReviewSample]
UNION ALL
SELECT [qYr2ReviewSample].CNTYNAME, [qYr2ReviewSample].ReviewKey, "A2C" as
Question, [A2C] as Answer
FROM [qYr2ReviewSample];
In case it makes any difference, this report is a subreport linked by
CNTYNAME. Thank you.