unexpected prompts in a report

G

Guest

I have a 2 text fields with IIF statements in the control source that say if
number is > then average, 'yes' (in the first column) and if number< average
'no' in the other column. These fields are not bound to a table or query,
just calculated in the report. The problem is that when I use the
=Count([Field Name 1]) in one of my footers and run the report, a prompt
appears saying 'Field Name 1". How can i get rid of that error.
The same happens for my 'no' column , =Count([Field Name 2)].
So I get 2 prompts!
 
A

Allen Browne

As you found, you cannot sum a text box.

You could repeat the entire expression from the text box in the group
footer's text box, e.g.:
=Sum(IIf(...

Or you could create a query, and enter the calculated field there. Then you
have a field to sum in your footer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top