Populate text box from Variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jamen98
    New Member
    • Jul 2010
    • 7

    Populate text box from Variable

    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.

    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
    The MsgBox was just my testing to ensure the appropriate global variable was being pulled correctly.

    Any assistance is greatly appreciated!

    Thanks!
  • Jamen98
    New Member
    • Jul 2010
    • 7

    #2
    Found the error... Got it working...

    Comment

    Working...