Hi Experts...Im using MS access. Im trying to get a sub procedure to run if the enter key is pressed while the form is open. I have the below code to try and capture when the Enter key is pressed. It then is supposed to run the mousedown event of a label
(which Im using instead of a button). The label is called "LblLogin", so the mousedown event will run if the label is clicked on, or if the enter key is pressed....any help would be greatly appreciated.
Private Sub Form_KeyPress(KeyASCII As Integer)
If KeyASCII = 13 Then
KeyASCII = 0