Hi Guys
I am writing the following code on the OK button of the outlook form. Actually I want to display the value stored in a textbox and caption of a label. But when I run the form and click OK then it doesn't display anything for the texbox and label caption.
It's really strange. I have stored a value in txtAccount1 but when I try to display the value using a message box then the message box says blank.
I am writing the following code on the OK button of the outlook form. Actually I want to display the value stored in a textbox and caption of a label. But when I run the form and click OK then it doesn't display anything for the texbox and label caption.
It's really strange. I have stored a value in txtAccount1 but when I try to display the value using a message box then the message box says blank.
Code:
Private Sub btnOK_Click()
Me.txtHidden.SetFocus
Call MortgageNoValidation_New
End Sub
Code:
Public Sub MortgageNoValidation_New()
Dim StrMortgageNo As String
Dim StrErrorDescription As String
Dim Response As Integer
'StrErrorDescription = "OK"
' Reg Exp object to check that the mortgage numbers is 10 digits
Dim oRegEx As RegExp
MsgBox frmMessage.txtAccount1.Value
MsgBox frmMessage.lblSubject.Caption