473,804 Members | 4,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remapping the keyboard up/down arrows for tab stops

I have a Continous Form with 5 or so fields for each record, in a line
from left to right. Because the Contuous Form lists several records
at once, the form looks pretty much like a Datasheet. So, I'd like to
be able to navigate it like one when using the up/down/left/right
arrow keys of the keyboard. I have the fields set with tab stop
settings so that hitting the tab key moves one field to the right.
The problem I'm having is when I hit the down key of the keyboard, I
would like the navigation to jump to the record below the current
record, keeping the same field in focus. Instead, navigation simply
tab stops to the right. Likewise when I try to navigate "up" with the
up arrow key, it navigates to the left.

The left and right keys navigate fine through the tab stops, but
because the up/down keys are doing the same thing as the right/left
keys, they are pretty useless.

Is there a way to modify this behavior?

Thanks,
Rich
Nov 13 '05 #1
1 3338

"Richard Coutts" <rc*****@comcas t.net> wrote in message
news:70******** *************** ***@posting.goo gle.com...
I have a Continous Form with 5 or so fields for each record, in a line
from left to right. Because the Contuous Form lists several records
at once, the form looks pretty much like a Datasheet. So, I'd like to
be able to navigate it like one when using the up/down/left/right
arrow keys of the keyboard. I have the fields set with tab stop
settings so that hitting the tab key moves one field to the right.
The problem I'm having is when I hit the down key of the keyboard, I
would like the navigation to jump to the record below the current
record, keeping the same field in focus. Instead, navigation simply
tab stops to the right. Likewise when I try to navigate "up" with the
up arrow key, it navigates to the left.

The left and right keys navigate fine through the tab stops, but
because the up/down keys are doing the same thing as the right/left
keys, they are pretty useless.

Is there a way to modify this behavior?

Thanks,
Rich


Ya, I like using the arrow keys too. Lots of ways to do what you want, this
one works for me:

Private Sub Form_KeyDown(Ke yCode As Integer, Shift As Integer)
On Error Resume Next
If KeyCode = 40 Then
DoCmd.GoToRecor d , , acNext
End If
If KeyCode = 38 Then
DoCmd.GoToRecor d , , acPrevious
End If
Exit Sub
End Sub

HTH,
Randy
Nov 13 '05 #2

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

Similar topics

3
19137
by: dreamer | last post by:
I am making a program for a friend with a disability. I need to adjust his audio volume using the keyboard as he cannot use a mouse. Any suggestions as to how I can raise the volume using the up arrow on the keyboard and decrease the volume using the down arrow? I am using VB 5. Many thanks in advance.
2
1862
by: rbscheer | last post by:
Hi. Is it possible to use Javascript to simulate a keyboard key? For example, when the user clicks an image a piece of code runs the F1 key, or a combination of keys like SHIFT+F2. Thanks, Robert Scheer
1
1820
by: Raffi | last post by:
I'm trying to re-map mouse buttons and/or keyboard keys using javascript. Examples are the right mouse button event being replaced by the enter key or even ctrl-C. Is this possible with javascript? Thanks, Raffi
0
5797
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" event. This code (see below) by itself works as expected with a mouse. But when using keyboard arrows to navigate the ComboBox drop- down, the SelectedIndexChanged event is triggered which is what I don't want using the keyboard. Instead, I want...
0
1539
by: Jim H | last post by:
I'm trying to use an owner draw ListBox by subscribing to the DrawItem event to draw my custom control as an item in the ListBox. This event is triggered when I drag the scroll button but NOT when I click the up/down arrows on the scroll bar of the ListBox. How do I handle the user clicking the up/down arrows? Anybody have any ideas? Jim
0
1076
by: Kenny | last post by:
I have been given the task of writting a sample application to remap the keyboard. Does anybody have a clue how I would approach this.
1
1552
by: Susan | last post by:
For some reason, the keyboard remapps itself in the .Net Visual Studio environment occassionally. For instance 'z' will become 'e' and 'x' becomes 'k'. This only happens in the .Net environment so the other programs I have up like Excel and Toad are still fine. Any ideas?
0
1866
by: Fromethius | last post by:
Hi everyone. For the past day I've been trying to find a good way to handle keyboard input. Naturally, I wanted to just use WM_KEYDOWN and WM_KEYUP to handle my events, but they proven to have limitations. In my game there was a keyboard delay. If you pressed and held down the right arrow key, the character would move one pixel to the right, stop, then continue moving. I wanted the character to immediately start moving and continue moving...
13
8761
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which is the behaviour I want make happen in IE. Does anyone know how to accomplish this? Thanks a lot Andy Birchall
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10320
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9150
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.