If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Access not picking up Enter Key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-12, 16:40
tkepongo tkepongo is offline
Registered User
 
Join Date: Jul 2011
Posts: 63
Access not picking up Enter Key

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?
Reply With Quote
  #2 (permalink)  
Old 01-26-12, 16:54
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
Check the "Move after Enter" option parameter. In Access 2003 it's in the Options Menu --> "Keyboard" tab.

You can also use the KeyDown event instead of KeyEnter.
__________________
Have a nice day!
Reply With Quote
  #3 (permalink)  
Old 01-26-12, 16:57
tkepongo tkepongo is offline
Registered User
 
Join Date: Jul 2011
Posts: 63
Quote:
Originally Posted by Sinndho View Post
Check the "Move after Enter" option parameter. In Access 2003 it's in the Options Menu --> "Keyboard" tab.

You can also use the KeyDown event instead of KeyEnter.
We have Access 2007 and I can't find any option for Keyboard
Reply With Quote
  #4 (permalink)  
Old 01-26-12, 17:43
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
Click on the "Office" button (upper-left corner) then click on the "Access Options" button and select the "Advanced" group.
__________________
Have a nice day!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On