473,396 Members | 2,011 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,396 software developers and data experts.

Newbe - Data Entry - Home/End/Arrow Keys

Hi - On a data entry screen with misc. input boxes, such as for Name,
Telephone Number, etc., when tabing down the input screen, Access will
highlight whole contents in that box. Sometimes I'd like to be able
to jump to the end or the beginning of that input box to start typing
without overwritting what's already in there. In other words, if I
key a Home or an End key, the cursor will jump to the tabs at top or
out of the screen. If I try to use the arrow keys to move in the
input box, it acts like a Tab or an Enter, and jumps to the next box.
Is there anyway to make those keys work in the input box without
having to move my hand and click the mouse in the box...?

Thanks - Richard Wakeman
Nov 13 '05 #1
2 2166
There are two ways around this without just using the mouse to click where
you want the cursor to be.

1) Go to Tools|Options|Keyboard tab and change the selection under "Behavior
entering field". This will affect all controls.

2) To affect only some controls, you'll need a little VBA in the controls'
Got Focus event. The commands you will need are SelStart and SelLength.

Example:
Me.ActiveControl.SelStart = 0 'start
Me.ActiveControl.SelStart = Len(Me.ActiveControl.Text) 'end

'somewhere in the middle
Me.ActiveControl.SelStart = 4
Me.ActiveControl.SelLength = Len(Me.ActiveControl.Text) - 4

--
Wayne Morgan
Microsoft Access MVP
"Richard Wakeman" <jr***@adelphia.net> wrote in message
news:4d**************************@posting.google.c om...
Hi - On a data entry screen with misc. input boxes, such as for Name,
Telephone Number, etc., when tabing down the input screen, Access will
highlight whole contents in that box. Sometimes I'd like to be able
to jump to the end or the beginning of that input box to start typing
without overwritting what's already in there. In other words, if I
key a Home or an End key, the cursor will jump to the tabs at top or
out of the screen. If I try to use the arrow keys to move in the
input box, it acts like a Tab or an Enter, and jumps to the next box.
Is there anyway to make those keys work in the input box without
having to move my hand and click the mouse in the box...?

Thanks - Richard Wakeman

Nov 13 '05 #2
Mr. Morgan...

Thanks for you help! That worked perfectly. Together with the menu
settings and the SelStart's, I can move around on the input screen just
like I want to.

Richard Wakeman
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3

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

Similar topics

0
by: Paul Nathan | last post by:
While trying to write a simple game which uses the arrow keys, I noticed that under the subroutine that handles mybase.keydown, everytime I pressed any arrow keys, or in fact any of the 9 keys...
5
by: skipc | last post by:
Hi, I am stuck... I've got a popup window that displays a list in table format with links on the bottom to navigate the list <prev> 1 2 3 ... <next> When I demo'd to the users... they...
2
by: Darren Oakey | last post by:
ok - the problem - I made a simple breakout game out of a form, just painting the background - and using keydown for left and right arrow keys to control the bat - worked fine. I then moved all...
0
by: bj | last post by:
Hello Recently i've found very interesting problem i made new class derived from UserControl and i need to process arrow keys movments but OnKeyDown method seems to all keys besides arrow keys...
4
by: Neil Wallace | last post by:
Hi there, I have an application in which a grid of 100 or more buttons are put on a form in columns of 10. All the buttons are within a panel. They are added in runtime, and so they adopt a...
11
by: Rlrcstr | last post by:
How can you detect when an arrow key gets pressed? Doesn't seem to trigger a KeyPress or KeyDown event. Thanks. Jerry
2
by: Vincent | last post by:
Hi, I have a user control that needs to trap the arrow keys to move items around internally. However, using the arrow keys will move the focus to another control on the form hosting the user...
0
by: Martijn Mulder | last post by:
/* I override IsInputKey() to direct the Arrow Keys (Cursor Keys) to my custom System.Windows.Forms.Control. But, holding down the Shift-Key prevents the Arrow Keys from coming through. How can...
4
by: boopsboops | last post by:
Hi thescripts people, I hope I'm in the right forum for Visual Basic Dotnet (VS 2005). I am trying to make a custom control in which you can nudge a point around using the arrow keys. Actually,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.