Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Amount_KeyDown(KeyCode As Integer, Shift As Integer)
'Dim KeyCode As Integer
Select Case KeyCode
Case vbKeyNumpad0 To vbKeyNumpad9, vbKey0 To vbKey9, vbKeyDecimal
' if control prior to entering this key, alredy has
' a length of 8, disallow new number
If Len(Me!Amount.Text) >= 8 Then
KeyCode = 0 ' cancel keystroke
End If
Case vbKeyDelete, vbKeyBack, vbKeyLeft, vbKeyRight, vbKeyTab
' do nothing, they're allowed
Case Else ' disable the rest
KeyCode = 0 ' cancel keystroke
End Select
End Sub