G
Guest
I am trying to run a 'Total Sales by Day' report from a crosstab query. The
crosstab query is based on an underlying query which normally works fine, so
long as data exists for each day of the week. However, problems occur when,
for example, I adjust the underlying query to only report figures for the
last few days. Access then displays the following error message:
"The Microsoft Jet database engine does not recognize 'Sunday' (or whichever
day cannot be found) as a valid field name or expression".
The 'detail' section of the report contains 7 fields, with the control
sources set to refer to each day of the week in the crosstab query, eg.
"Sunday".
The group footers each contain another 7 fields with Sum formulae entered
for each day, for example:
=Sum([Sunday]), =Sum([Monday]), and so on...
Is there any way I can make this report more flexible without having to
adjust it each time and remove the offending fields?
Regards,
Jedster
crosstab query is based on an underlying query which normally works fine, so
long as data exists for each day of the week. However, problems occur when,
for example, I adjust the underlying query to only report figures for the
last few days. Access then displays the following error message:
"The Microsoft Jet database engine does not recognize 'Sunday' (or whichever
day cannot be found) as a valid field name or expression".
The 'detail' section of the report contains 7 fields, with the control
sources set to refer to each day of the week in the crosstab query, eg.
"Sunday".
The group footers each contain another 7 fields with Sum formulae entered
for each day, for example:
=Sum([Sunday]), =Sum([Monday]), and so on...
Is there any way I can make this report more flexible without having to
adjust it each time and remove the offending fields?
Regards,
Jedster