Hi!
I would like to write code for a msgbox.
I have created a userform. I would like a msgbox to appear if the user has not entered thier first name into txtFirstName box.
First I would like to confirm that I write this code into the cmdSubmit section.
Secondly I need help to write the code.
This is what I have tried.
If txtFirstName = " " Then
msgbox "Your first name is required" vbcritical, "First Name"
End If
When I do this and click the submit button, no msgbox appears and the form continues to submit.
Thank you so much in advance-Josnow
I would like to write code for a msgbox.
I have created a userform. I would like a msgbox to appear if the user has not entered thier first name into txtFirstName box.
First I would like to confirm that I write this code into the cmdSubmit section.
Secondly I need help to write the code.
This is what I have tried.
If txtFirstName = " " Then
msgbox "Your first name is required" vbcritical, "First Name"
End If
When I do this and click the submit button, no msgbox appears and the form continues to submit.
Thank you so much in advance-Josnow