Hello Emma,
What I meant was assuming that your control with this problem on your form
(or report) is a text box. When you just drop in one of these from the
field list, the name of the box is the field name, and the field name is also
the control source. If you modify the control source to being an
expression, you have to rename the box a different name than the field name.
If you forget, (as I have many times) you'll get the error message that you
describe.
The second possibility I don't know the detailed rules well enough to
describe, particularly for forms (vs. reports). But in reports, you
sometimes get such a message by trying to use the result of one calculation
as an input to a different calculation, and this is done by using the name of
the first control in the second calculaiton.
Emma said:
Hi Fred,
Loans - Table is an actual table that exists. I don't know what you mean by
"box" do you mean field? Because AmountofPayment is a field.
Fred said:
Couple things to check
- Don't know if "Loans - Table" is literally in there, if so that
syntax/naming might cause problems.
- Make sure that none of those names are also the names of the boxes, i.e.
that 1. You renamed any boxes to something other than the field names when
you used the field names in expressions. 2. You didn't try to use a box
name (result of a calculation) in an expression.
:
I am trying to subtract a calculation on the fly so it updates as the user
enters more information. Here's what I have but I'm getting a Name? error
=[Loans - Table].[AmountofLoan]-(Sum([AmountOfPayment]))