By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

expression invalud, aggregate functions allowed only on output fields....

P: n/a
Hey,

I have a report featuring a handful of subreports, a field taking values
from the main record source, and a field in the report footer which
displays the sum of values in said field.

The report works fine normally, if I hide the subreports then it still
works ok...

....however...

If I hide the subreports through vba (externally, i.e. from within the
command button on another form which opens this report) then I get the
error 'the expression 'sum([guests])' is invalid... aggregate functions
are only allowed on output fields of the record source'

Any clues? The subreports are totally seperate to the fields in question!

Using access 2002 adp with sql-server 8.

Cheers,
Chris
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.