Guest_imported
New member
- Jan 1, 1970
- 0
My code is below, my problem is that I'm recieving two consecutive message boxes, when I only want one. I know the code is a little screwy but I've been playing with is trying to figure this out. Any suggestions?
Thanks
Function CustomerID_Blur()
CustomerID_Blur = False
If frmMain.CustomerID.Value <> "" then
If Len(frmMain.CustomerID.value) <> 15 Then
msgbox "CustomerId must be 15 digits.", vbcritical, "Intell-A-Check"
Exit Function
Else
If Not IsNumeric frmMain.CustomerID.value) then
msgbox "CustomerId must be 15 digits.", vbcritical, "Intell-A-Check"
Exit Function
Else
CustomerID_Blur = True
Exit Function
End If
End If
Else
Exit Function
End If
End Function
Thanks
Function CustomerID_Blur()
CustomerID_Blur = False
If frmMain.CustomerID.Value <> "" then
If Len(frmMain.CustomerID.value) <> 15 Then
msgbox "CustomerId must be 15 digits.", vbcritical, "Intell-A-Check"
Exit Function
Else
If Not IsNumeric frmMain.CustomerID.value) then
msgbox "CustomerId must be 15 digits.", vbcritical, "Intell-A-Check"
Exit Function
Else
CustomerID_Blur = True
Exit Function
End If
End If
Else
Exit Function
End If
End Function