I'm trying to transfer a calculated sum from a form to a table. User is to enter amount on Field A and Field B and the calculated sum on Field C is to be transferred to a table (to SumField). I have created a SetValue macro with the following properties:
Item: [MyDatabase]![SumField]
Expression: [Forms]![MyForm]![Field C]
------------------------------------------------
However, when I try to run this macro, I get the following error:
Microsoft Access can't find the form 'My Form' referred to in a macro expression or Visual Basic code.
* The form you referenced may be closed or may not exist in this database.
* Microsoft Access may have encountered a compile error in a Visual Basic module for the form.
-------------------------------------------------
I have not entered an equal sign before the expression.
Both my form and my database are open when I run the macro (must they be?)
Item: [MyDatabase]![SumField]
Expression: [Forms]![MyForm]![Field C]
------------------------------------------------
However, when I try to run this macro, I get the following error:
Microsoft Access can't find the form 'My Form' referred to in a macro expression or Visual Basic code.
* The form you referenced may be closed or may not exist in this database.
* Microsoft Access may have encountered a compile error in a Visual Basic module for the form.
-------------------------------------------------
I have not entered an equal sign before the expression.
Both my form and my database are open when I run the macro (must they be?)