Would love to see those good tricks please.
That was just a quick solution I could think of with anything I could remember about 'basic'.
No... I didn't understand.
Sorry, let me explain... Suppose, I want to use Value Box to get user input for:
Public Sub ValuBox_KeyPress()
If Str(Last.Value).Len = iMaxLen then
Stop Event ' Stop the keypress event adding the char if the length is max
Return
Endif
End
Public Sub accountinfoBoxes_keypress()
If Key.Code
If Last.Name = "TBankroute" Or Last.Name = "TBaccNum" And Not (IsDigit(Key.Text) Or
Key.Code = Key.BackSpace Or Key.Code = Key.Tab Or Key.Code = Key.BackTab Or
Key.Code = Key.Left Or Key.Code = Key.Right) Then Stop Event