I'm trying to run a query when a user hits the Enter key in a textbox. On my workstation, everything runs fine. However, on some machines, Access isn't recognizing the Enter key being pressed. Here's an example code
Code:
Private Sub Receipt__KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
MsgBox ("derp")
Else
MsgBox ("herpity derp")
End If
As I type in the textbox, Access will display "herpity derp" but when I hit the Enter key, it skips to the next textbox. What am I doing wrong?