Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (not isnumeric(txtField)) or ((isnumeric(txtField)) and ((left(txtField,1) <> '9') or (len(txtField) <> 5))) then
msgbox "error"
end if
Public Function basChkVal(frm As Form, Ctrl As Control) As Boolean
If (Not IsNumeric(Ctrl)) Then
basChkVal = False
GoTo ErrExit
End If
If (IsNumeric(Ctrl)) And _
((Left(Ctrl, 1) <> "9") Or (Len(Ctrl) <> 5)) Then
MsgBox "error"
basChkVal = False
Else
basChkVal = True
End If
ErrExit:
End Function
Private Sub txtMyNumbText_AfterUpdate()
If (basChkVal(Me, Me.txtMyNumbText) <> True) Then
MsgBox "Error in Entry Value." & vbCrLf & "Please Re-Enter The value in " & Me.ActiveControl.Name
txtMyNumbText = ""
End If
End Sub