I have a line in the Close event of a modal pop up form which is designed to send a value to the control in the form from which the modal form pops up. The modal form is called up via the On_Click event of that control. The line in the Close event of the modal form that is creating the problem is....
glblCalcBas is a global variable created in Module1 with this code....
The calculation in the modal form is accomplished through this code....
And this is producing the "Object variable or with variable not set" error. Run time error '91'.
Any help would be greatly appreciated. Thank you!
Code:
glblCalcBas.Value = Me.Calculation
glblCalcBas is a global variable created in Module1 with this code....
Code:
Public glblCalcBas As Access.Control
The calculation in the modal form is accomplished through this code....
Code:
Dim Basis As Double
Dim ClcFld As Double
Basis = Me.ConversionFactor.Value
ClcFld = Basis * 224
Me.Calculation = ClcFld
DoCmd.Close
And this is producing the "Object variable or with variable not set" error. Run time error '91'.
Any help would be greatly appreciated. Thank you!