Using Access 2003, I am trying to display the sum of values in a field from a query on a form, and the box say #error most of the time, and I have no idea how to determine what the 'error' is.
I have a query called "Jobs Not Paid" which returns some info on jobs that have been invoiced but not paid. One of the columns in the query results is "Job_Billed_Amount". I want to display a sum of the values in this column on my form. This will be the total amount that we are currently owed.
The way I see this; I can either do the summing via the control on the form, or use a separate query to sum the values in the "Jobs Not Paid" query, and put that result on the form. I haven't had any luck either way.
I have made a text box on the form and tried setting the 'control source' to
=sum([Jobs Not Paid]!Job_Billed_Amount), but the textbox just says #error. If I just put "=sum(Job_Billed_Amount)", which I assume is now referencing my main data table (which also has a field with that name), the total of that field for ALL records is displayed in the textbox, but of course I only want the total of those records 'invoiced but not paid'.
Please help!
Thanks.
I have a query called "Jobs Not Paid" which returns some info on jobs that have been invoiced but not paid. One of the columns in the query results is "Job_Billed_Amount". I want to display a sum of the values in this column on my form. This will be the total amount that we are currently owed.
The way I see this; I can either do the summing via the control on the form, or use a separate query to sum the values in the "Jobs Not Paid" query, and put that result on the form. I haven't had any luck either way.
I have made a text box on the form and tried setting the 'control source' to
=sum([Jobs Not Paid]!Job_Billed_Amount), but the textbox just says #error. If I just put "=sum(Job_Billed_Amount)", which I assume is now referencing my main data table (which also has a field with that name), the total of that field for ALL records is displayed in the textbox, but of course I only want the total of those records 'invoiced but not paid'.
Please help!

Thanks.