On Apr 17, 10:35 pm, peso...@gmail.com wrote:
Quote:
I am using a wedge barcode scanner to enter data in an access
database, but for certain combinations of characters I want to parse
the input in code and react accordingly. The keypress event on the
form only gives me access to the first character in the string, is
there some way to access the keyboard buffer during the keypress event
and get the rest of the string? The only way I have found to do this
is write the data to a field on the form and then parse it in the
after_update event. Is there another way?
>
Thanks in advance.
Have you looked at the keydown (not keypress) and change events? Both
of these react to individually typed characters. How they would react
to entry from a barcode scanner, I don't know, but it's worth looking
into. Are you saying that you want there to be a reaction prior to
all of the barcode characters from a single barcode being read? If
not, then you're probably taking the right approach by using the
afterupdate event to parse the input (or beforeupdate if you need to
do some kind of validation before accepting the input).
Bruce