kevinonearth
Member
Hi,
I am new to VB and trying to teach myself
I have some questions
when writing code to cancel a form we use:
Private Sub cmdCancel_Click()
Unload Me
End Sub
What does Me mean??
Also in the following code what does Me do?
Private Sub cmdOK_Click()
If Me.txtFirstName.Value = "" Then
MsgBox "Please enter a First Name.", vbExclamation, "Staff Expenses"
Me.txtFirstName.SetFocus
Exit Sub
End If
End Sub
Thank you!
I am new to VB and trying to teach myself
I have some questions
when writing code to cancel a form we use:
Private Sub cmdCancel_Click()
Unload Me
End Sub
What does Me mean??
Also in the following code what does Me do?
Private Sub cmdOK_Click()
If Me.txtFirstName.Value = "" Then
MsgBox "Please enter a First Name.", vbExclamation, "Staff Expenses"
Me.txtFirstName.SetFocus
Exit Sub
End If
End Sub
Thank you!