I use this code to validate for numbers in a text box:
Private Sub txtCS_NUM_BeforeUpdate(Cancel As Integer)
If Not IsNumeric(Me![txtCS_NUM]) Then
MsgBox "The data must be numbers only"
Cancel = True
Me![txtCS_NUM].Undo
End If
End Sub
How can I change it to validate for text??
and is there a way to validate for all the text fields and all the numeric fields??
Private Sub txtCS_NUM_BeforeUpdate(Cancel As Integer)
If Not IsNumeric(Me![txtCS_NUM]) Then
MsgBox "The data must be numbers only"
Cancel = True
Me![txtCS_NUM].Undo
End If
End Sub
How can I change it to validate for text??
and is there a way to validate for all the text fields and all the numeric fields??