I can force all entry to be numeric using:
Private Sub txtTravel_Total_Cost_PressKey()
' Ensure entered value is numeric
KeyAscii = IIf(Not KeyAscii = 8 And Not IsNumeric(Chr (KeyAscii)), 0, KeyAscii)
End Sub
This will not work for currency values and there is'nt any IsCurrency() function!!
Anyone came across this or use a simple get around??
Private Sub txtTravel_Total_Cost_PressKey()
' Ensure entered value is numeric
KeyAscii = IIf(Not KeyAscii = 8 And Not IsNumeric(Chr (KeyAscii)), 0, KeyAscii)
End Sub
This will not work for currency values and there is'nt any IsCurrency() function!!
Anyone came across this or use a simple get around??