Hello:
I have read various posts on this subject but still can not get mine to work. Basically I have a Main form (Forecastform) with a subform (Forecast_Subfo rm). In the footer of the subform I have a unbound textbox (TGWP_Sub) that calculates a subtotal of the records that are displayed. In the main form I have another unbound text box (TGWP_Main) that I want to display the value of "TGWP_Sub" In the load event of the Main form I have the following code:
[code=vb]
Me.TGWP_Main = Me!Subform1.For m![TGWP_Sub]
[/code]
I am receiving an error message indicating that it can not find the control TGWP_Sub.
My first question is:
Am I missing something in my vb code.
My second question is:
Since my subtotal can change based on the records will the code in the load event be dynamic so that if changes are made, then my TGWP_Main control will display the latest calculation. If not, what would be the best approach to achieving that?
Any assistance would be appreciated.
Keith.
I have read various posts on this subject but still can not get mine to work. Basically I have a Main form (Forecastform) with a subform (Forecast_Subfo rm). In the footer of the subform I have a unbound textbox (TGWP_Sub) that calculates a subtotal of the records that are displayed. In the main form I have another unbound text box (TGWP_Main) that I want to display the value of "TGWP_Sub" In the load event of the Main form I have the following code:
[code=vb]
Me.TGWP_Main = Me!Subform1.For m![TGWP_Sub]
[/code]
I am receiving an error message indicating that it can not find the control TGWP_Sub.
My first question is:
Am I missing something in my vb code.
My second question is:
Since my subtotal can change based on the records will the code in the load event be dynamic so that if changes are made, then my TGWP_Main control will display the latest calculation. If not, what would be the best approach to achieving that?
Any assistance would be appreciated.
Keith.
Comment