I have been trying to use the "+" or "-" button the change the date of a textbox.
Here's the code:
Private Sub DateEntry_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 43 ' Plus key
KeyAscii
Screen.ActiveControl = Screen.ActiveControl + 1
Case 45 ' Minus key
KeyAscii = 0
Screen.ActiveControl = Screen.ActiveControl - 1
End Select
End Sub
I keep getting a compile error:
Expected Sub,Function or Property
what's going on here
Please help,,,,,,,anyone
thanks
Here's the code:
Private Sub DateEntry_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 43 ' Plus key
KeyAscii
Screen.ActiveControl = Screen.ActiveControl + 1
Case 45 ' Minus key
KeyAscii = 0
Screen.ActiveControl = Screen.ActiveControl - 1
End Select
End Sub
I keep getting a compile error:
Expected Sub,Function or Property
what's going on here
Please help,,,,,,,anyone
thanks