I have a global variable that I need to populate a text box with. The message box comes up with the correct variable, but I'm not sure how to populate my "RiskFactor_Txt " textbox. I have tried several variations to the "Forms!xxxx " statement without success.
The MsgBox was just my testing to ensure the appropriate global variable was being pulled correctly.
Any assistance is greatly appreciated!
Thanks!
Code:
Private Sub Form_Load()
Dim TestMsg As Double
TestMsg = Me.OpenArgs
MsgBox TestMsg, vbOKOnly, "Test text"
Forms!Final_Rate_Form!RiskFactor_Txt.Value = TestMsg
End Sub
Any assistance is greatly appreciated!
Thanks!
Comment