E
Evie V via AccessMonster.com
I have a text box with code that when the user enters a customer number, a
message pops up that they must also enter a company name if the company name
field is blank. How can I prevent the user from going any further if the
company name is blank.
Private Sub companynum_AfterUpdate()
If (IsNull(CompanyName)) Then
' If no Company Name selected, stop procedure
MsgBox "You Must Enter A Company Name"
Exit Sub
End If
End Sub
Thanks,
Evie
message pops up that they must also enter a company name if the company name
field is blank. How can I prevent the user from going any further if the
company name is blank.
Private Sub companynum_AfterUpdate()
If (IsNull(CompanyName)) Then
' If no Company Name selected, stop procedure
MsgBox "You Must Enter A Company Name"
Exit Sub
End If
End Sub
Thanks,
Evie