473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Keyboard move after enter

I want to prevent the focus moving to the next field in a form after
pressing enter. I want to do this for only one specific form, I don't
want to change the keyboard behaviour for the whole database using
Tools >> Options >> Kewyboard >> Move after enter >> Don't move. Any
suggsetions?

Nov 13 '05 #1
3 3558
Set the form's KeyPreview property to Yes (on the Event tab of the
Properties box), and use the KeyDown event to trap KeyCode 13, and destroy
the keystroke (by assigning 0 to KeyCode.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Geoff G" <ge***@sunny-side.ws> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I want to prevent the focus moving to the next field in a form after
pressing enter. I want to do this for only one specific form, I don't
want to change the keyboard behaviour for the whole database using
Tools >> Options >> Kewyboard >> Move after enter >> Don't move. Any
suggsetions?

Nov 13 '05 #2

Allen Browne wrote:
Set the form's KeyPreview property to Yes (on the Event tab of the
Properties box), and use the KeyDown event to trap KeyCode 13, and destroy
the keystroke (by assigning 0 to KeyCode.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Geoff G" <ge***@sunny-side.ws> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I want to prevent the focus moving to the next field in a form after
pressing enter. I want to do this for only one specific form, I don't
want to change the keyboard behaviour for the whole database using
Tools >> Options >> Kewyboard >> Move after enter >> Don't move. Any
suggsetions?


Nov 13 '05 #3

Allen Browne wrote:
Set the form's KeyPreview property to Yes (on the Event tab of the
Properties box), and use the KeyDown event to trap KeyCode 13, and destroy
the keystroke (by assigning 0 to KeyCode.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Geoff G" <ge***@sunny-side.ws> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I want to prevent the focus moving to the next field in a form after
pressing enter. I want to do this for only one specific form, I don't
want to change the keyboard behaviour for the whole database using
Tools >> Options >> Kewyboard >> Move after enter >> Don't move. Any
suggsetions?


Thanks Allen,

I've found a different way of achieving what I wanted but I've learnt
something useful from you.

Geoff

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Scott Shaw | last post by:
Hi all, I was wondering if you could help out with this problem that I am having. What I am trying to do is detect keyboard input in a while loop without halting/pausing the loop until the key is...
3
by: Andrus Moor | last post by:
I want to use the keyboard keys for navigation in menu: 1. Alt+hotkey must activate menu bar 2. Left and right arrow must move between menus, 3. Up and Down arrow move between menu items. 4....
3
by: Tomasz \Boruh\ Borowiak | last post by:
Does anybody have any idea how to write a c++ console application which simulates the mobile phone keyboard ? for Example: when i write SMS I hit 2 - I get "a" I hit 22 - I get "b" I hit 222...
13
by: Steve Jorgensen | last post by:
Well, it seems that Microsoft, or whatever powers that be have decided it's time for us to have yet another standard keyboard layout change. I think I see that the point of this one was to reduce...
0
by: Ray | last post by:
I have English Windows XP Pro and Office 2003 Pro on my computer. When I enter data into fields of tables, queries and forms of Access 2003, it automatically switches to Chinese keyboard input. ...
0
by: George Hartas | last post by:
I am using Visual C# .NET 2003 to make a ComboBox accept both mouse and keyboard selection. For mouse selection code, I double-clicked ComboBox to get the default "comboBox1_SelectedIndexChanged"...
3
by: kettle | last post by:
Hi, I have a simple web page which is composed of a flash audio player (jwmp3player) and a form with a textarea box. I have noticed some very odd behaviour which I cannot puzzle out. If I...
1
by: Techno3000 | last post by:
import java.io.*; import java.awt.*; import hsa.Console; public class Calculator { static Console c; public static void main (String args) throws IOException
1
by: Aycex | last post by:
I am taking my first java class as i am a Database person this is quite interesting and here is my problem. We are supposed to be learning to overload a class and i believe i have my code correct...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.