D
danno
I have a report that opens from a form that sets the reports criteria
(frmSelect). The row source for the report is in the form:
SELECT ....
FROM .....
INNER JOIN....
WHERE (tblTableName.FieldName = [Forms]![frmFormName]![Fieldname] Or
[Forms]![frmFormName]![Fieldname] Is Null) AND (tblTableName.FieldName2 =
[Forms]![frmFormName]![Fieldname2] Or [Forms]![frmFormName]![Fieldname] Is
Null) AND ....
There are about 8 fields used as criteria and the report returns the
criteria as entered into frmSelect (all records for field if left null)
The problems I have are these:
1. Access for some reason re-writes the above code in SQL listing every
single combination meaning it takes a long time to switch between the
rowsource design view and SQL - can this be stopped?
2. The report actually shows averages and standard deviations of data which
is what I want but I would also like to display how many records this
calculated data is based on - any ideas on how best to do this?
Thanks
DF
(frmSelect). The row source for the report is in the form:
SELECT ....
FROM .....
INNER JOIN....
WHERE (tblTableName.FieldName = [Forms]![frmFormName]![Fieldname] Or
[Forms]![frmFormName]![Fieldname] Is Null) AND (tblTableName.FieldName2 =
[Forms]![frmFormName]![Fieldname2] Or [Forms]![frmFormName]![Fieldname] Is
Null) AND ....
There are about 8 fields used as criteria and the report returns the
criteria as entered into frmSelect (all records for field if left null)
The problems I have are these:
1. Access for some reason re-writes the above code in SQL listing every
single combination meaning it takes a long time to switch between the
rowsource design view and SQL - can this be stopped?
2. The report actually shows averages and standard deviations of data which
is what I want but I would also like to display how many records this
calculated data is based on - any ideas on how best to do this?
Thanks
DF