I have a text field and the user enters is supposed to enter a name in the format Last Name, First Name. However if the user does not enter with the correct format, then I want an error message to pop up. Basically if the user does not enter a comma (,) in their input, then I want an error mesage to display. I figured this would be the easiest way. I m not sure how to implement this.
If Not Me.Invent1="," then
msgbox "error"
End if
This does not work. Any ideas on how I could correctly do this. I was going to put this in my exit event.
User input: doe joe
There is no comma, so error message pops up
User Input: doe, joe
No error message
If Not Me.Invent1="," then
msgbox "error"
End if
This does not work. Any ideas on how I could correctly do this. I was going to put this in my exit event.
User input: doe joe
There is no comma, so error message pops up
User Input: doe, joe
No error message