Hey folks -
I'm working on a form. The form is in datasheet view. There are two
fields of concern: "Score" and "Answer".
I'm having problems getting the behavior I want out of it.
Score and Answer are both drop downs. Only Score has a tab stop.
Normally, the user will type in a single number for the Score, 0-9. It
should then update Answer based on the score, and move the cursor to the
Score field the next row down. All this on a single number keystroke.
The idea is that they can fly through the whole form by pressing only
number keys.
The problem is, I can't figure out which event to base this updating
code on. Keypress events screw stuff up if the user tries to tab back
into the previous row.
How should I do this?
Steve Lefevre 3 1577
STeve Lefevre wrote: Hey folks -
I'm working on a form. The form is in datasheet view. There are two fields of concern: "Score" and "Answer".
I'm having problems getting the behavior I want out of it. Score and Answer are both drop downs. Only Score has a tab stop. Normally, the user will type in a single number for the Score, 0-9. It should then update Answer based on the score, and move the cursor to the Score field the next row down. All this on a single number keystroke. The idea is that they can fly through the whole form by pressing only number keys.
The problem is, I can't figure out which event to base this updating code on. Keypress events screw stuff up if the user tries to tab back into the previous row.
How should I do this?
Steve Lefevre
Ummm..
Enter score... OnUpdate set answer and then move to required record
(probably the next record)... SetFocus to score field (not needed if
it's the only Tab stop)
--
regards,
Bradley
Bradley wrote: Ummm..
Enter score... OnUpdate set answer and then move to required record (probably the next record)... SetFocus to score field (not needed if it's the only Tab stop)
The problem with OnUpdate is that it wants the tab or enter key to be
pressed. Ideally I would like for the user to just hit, say, 5, it it
would jump to the next record.
STeve Lefevre <le********@osu.edu> wrote in
news:VI**************@fe2.columbus.rr.com: Hey folks -
I'm working on a form. The form is in datasheet view. There are two fields of concern: "Score" and "Answer".
I'm having problems getting the behavior I want out of it. Score and Answer are both drop downs. Only Score has a tab stop. Normally, the user will type in a single number for the Score, 0-9. It should then update Answer based on the score, and move the cursor to the Score field the next row down. All this on a single number keystroke. The idea is that they can fly through the whole form by pressing only number keys.
The problem is, I can't figure out which event to base this updating code on. Keypress events screw stuff up if the user tries to tab back into the previous row.
How should I do this?
Steve Lefevre
The keypress idea is the best method. You just need to put some
code to read the keypress and perform a different action if a non-
number key like {shift}{tab} or {esc} is pressed. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew |
last post by:
Hi, friends,
We need to programm a .dll (C#) which will collect all selected files from
various locations, such as a DB, a file system, a VSS, etc. So, it may take
long time. I created a method...
|
by: Razvan |
last post by:
Hello,
Can somebody recommend me a Java Script scroller that can scroll an
i-frame ? I tried the Tigra scroller
(www.softcomplex.com/products/tigra_scroller/) but sometimes it does
not...
|
by: jayderk |
last post by:
I am writing an application with a form that once started will run for
several minutes(an import). I would like the progress bar on the form to
update with the progress of the import. I would also...
|
by: Aaron Smith |
last post by:
What is the best way to handle data in a multiple user environment? We
have forms that will allow users to add edit and delete data from a
table on SQL server. The data could be edited on multiple...
|
by: MLH |
last post by:
Using A97.
Want to examine 17-char VIN entered by user. VIN codes
are alphanumeric and do not contain Oh's to prevent the
confusion that could result if zeros were misread as O's
or o's. So, if...
|
by: mscdex |
last post by:
I have a server application that accepts file transfers (utilitzing
tcplistener) and was wondering how I would efficiently go about
determining the calculate transfer rate while I am transferring...
|
by: sjoshi |
last post by:
I have a derived class OraBackup which has a method that calls stored
procedure on Oracledb to get status of backup job.
Now the base class publishes an event like this:
public delegate void...
|
by: TEK |
last post by:
Hello
I'm having some questions regarding the implementation of
IPropertyChanged interface.
Status:
I have the basic stuff up and running, and on every property change I
get a call to my...
|
by: Patrick A |
last post by:
All,
I have an Access DB. On a nightly basis, I want to look at an Other
DB (not Access, but SQL) and:
+ Add any new records from Other.Clients into Access.Clients
Is this something I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
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...
|
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...
| |