You're right. That didn't work.But it seems like I ought to be able to write a query that sums the value I need and then stick that value in the text box.
I'm quite new at this, but it seems like such a simple thing to do.
The problem I have is that the report doesn't know which line of data to select. The query lists two fields, wpno and sumofprice. The text box control is in the wpno header of the report. The report is ordered by wpno. I thought that the control would find the appropriate wpno and list that value.
However, each time I run the report, a control comes up asking for a value for MATERIALS_COST, which is the name of the query.