C
CW
Whatever I do, I cannot pull a calculated field from a query into a form or
report without getting a #Name? error.
I did the simplest of tests: created Table1 with fields Field1 and Field2,
with format Number, Long Integer.
Created Query1, including those two fields and another, a calculated field,
like this:
Result: [Field1]+[Field2]
Created Form1 (in Design View, not via the Wizard). Added two text boxes
and set the sources as Table1.Field1 and Field2, created a further text box,
set the Control Source to be = Query1.Result.
I get #Name? in the controls in the Form.
Where am I going wrong? I thought the whole point of a Query was that you
could create a calculated field and then use it wherever you wanted???
Many thanks
CW
report without getting a #Name? error.
I did the simplest of tests: created Table1 with fields Field1 and Field2,
with format Number, Long Integer.
Created Query1, including those two fields and another, a calculated field,
like this:
Result: [Field1]+[Field2]
Created Form1 (in Design View, not via the Wizard). Added two text boxes
and set the sources as Table1.Field1 and Field2, created a further text box,
set the Control Source to be = Query1.Result.
I get #Name? in the controls in the Form.
Where am I going wrong? I thought the whole point of a Query was that you
could create a calculated field and then use it wherever you wanted???
Many thanks
CW