tony.reynolds
Board Regular
- Joined
- Jul 8, 2010
- Messages
- 97
Id like to only allow numbers in a textbox. but if a user enters any other character only remove that character
At the moment i have this and it obviously removes all characters if any other character is entered. bit of a pain
Should be easy but i cant seem to find a way to remove the last character entered
At the moment i have this and it obviously removes all characters if any other character is entered. bit of a pain
Should be easy but i cant seem to find a way to remove the last character entered
Code:
Private Sub BudgetAmount_Change()
Cancel.Caption = "Cancel"
Done.Enabled = True
If Not IsNumeric(BudgetAmount) Then
BudgetAmount = Empty
End If
End Sub