RE: BarCode Input

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Your comments are what I discovered through more testing during the day and
you are correct. My scanner does include the TAB/ENTER character at the end
so the AfterUpdate Event of the text box appears to fire off.

Thanks for the suggestion on setting the height to ZERO. I didn't think of
that one.

Thanks for the help.

Greg

"Peter Yang [MSFT]" wrote:

Hello Greg,

As I know, many barcode scanners work by plugging into the keyboard port so
the scanned "word" appears to the PC the same as if the characters were
typed via the keyboard. In this case, no special programing is required
for the Access program.

If there is no textbox on a form, Form_KeyPress Event may not work as you
expect. YOu may try to add a dummy textbox on the form with height/width=0,
and set focus to it when the form loads. For the change or other events,
you could get the barcode information and then try to do thinngs in other
forms as you want:

Private Sub Form_Load()
Text1.SetFocus
End Sub

Private Sub Text1_Change()

' do what you want from here
'MsgBox Text1.text, vbOKOnly

End Sub

When a textbox is set to "invisible", it is not to "setfocus" and you
cannot get the barcode information then.

Please see the following article for some useful informaiton about barcode:

http://www.granite.ab.ca/access/barcode.htm

Many scanners can be set up to include a <Tab> or <Enter> at the end of the
scanned data so that sometimes you just place the focus in the desired
TextBox, scan the barcode, and the data automatically is entered and the
focus automatically moves to the next field.

If you have any comments, please feel free to let's know. Thank you.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: BarCode Input
    ... many barcode scanners work by plugging into the keyboard port so ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.access.forms)
  • Re: Two keyboards
    ... >> For a pos system I am working on I need support for two keyboards ... but PS/2 scanners generated keysym data, just like a real keyboard. ... so let's make the scanner a keyboard!" ... anything about barcodes, ...
    (freebsd-hackers)
  • Re: Bar code printing on Lexmark 2480
    ... Most barcodes are supported by Host Print Transform, so you don't necessarily need PSF/400 and an IPDS printer. ... However, for the best barcode support from HPT, you would need a PCL5 or PCL6 capable printer. ... For barcode architecture, one need only get a hold of the lasted BCOCA manual. ... I suppose one could send everything but the barcodes to HPT and all you'd have to then transform is the barcodes to PPDS. ...
    (comp.sys.ibm.as400.misc)
  • Re: Help with bar code
    ... There is no setup required between Access and the barcode scanner itself. ... barcode label itself is an identifier that links the item ... so that I can determine what is an inventory label and what is the label from ...
    (microsoft.public.access.formscoding)
  • Re: Barcode Scanning App using VB 2005 for Windows CE 5 based devi
    ... The Dolphin 7600 Barcode scanner is from Handheld and they ... Btw, I'm currently working on POS too, which is also using Barcode Scanning ... Symbol SDK too? ... library that contains a generic interface and separate libraries ...
    (microsoft.public.dotnet.framework.compactframework)