|
|
Question : Access VBA - Validating numbers against text
|
|
Hi, I have a text box where users would place a series of numbers seperated by a ; . Is there anyway to validate this. So no letters can be used?
|
Answer : Access VBA - Validating numbers against text
|
|
place this codes in the key press event of the textbox
Private Sub TextBoxName_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case 48 To 57, 59 ' 0 to 9 , ; Case Else KeyAscii = 0 End Select
End Sub
|
|
|
|
|