Hi,
I have a form with a number of combo box's the first combo box contains a barcode that is associated with user information then the next box contains a barcode that is associated with task information and so on...
Basically what i need to do is scan the barcode and once the barcode is scanned automatically jump to the next combo box ready for the next barcode scan.
I am trying to avoid the user having to press any keys to input data into the combo box's and just scan the barcode...
I have tried the following code on the afterupdate and beforeupdate event with no success
which works fine if you "manually" select the record but it does not automatically move to the next combo box if you use the scanner
Please Help
Regards Phill
7 2230 ChipR 1,287
Recognized Expert Top Contributor
The AfterUpdate and BeforeUpdate events are triggered, usually, when the focus moves out of the field. For the behavior you want, you might use the Change event. Within the event code you can check if a full barcode has been entered, and if so, move to the next box. - If Len(firstComboBox.text) = lengthOfABarCode Then
-
secondComboBox.SetFocus
-
End If
Hopefully, I am correct in assuming that scanning a barcode emulates typing a series of numbers into the fields. I don't know anything about bar codes, so disregard this if I'm completely off.
Good luck,
Chip
Denburt 1,356
Recognized Expert Top Contributor
I have worked with Scanners in the past and most have a setting that users can change so that once a barcode is scanned it will send an "Enter" or a "Return" I believe that some will even output a "Tab" this can easily be used to move to the next field. If your scanner doesn't have this option then you could fall back on to Chips idea as that would be your best option.
JustJim 407
Recognized Expert Contributor
By coincidence, I am currently working on barcode implementation for a client. Are you creating your own barcode labels? What barcode system and what barcode font are you using? Do you use Access to produce the labels as well?
It is perfectly reasonable to build one bar code that encodes "UserInformatio n"TAB"TaskInfor mation"ENTER" all at once.
Jim
Hi ChipR
thanks for the reply I tried your code but now I am getting the error
Run-time error 2110 "Can't move the focus to....
Any ideas?
Hi Just Jim no im not using access to create the barcodes at this stage the barcode font i am using is Free 3 of 9 Extended
Any help is much appreciated
Regards Phill
ChipR 1,287
Recognized Expert Top Contributor
It seems like this will happen if the value of the control isn't valid when you try to change the focus.
I like the IDAutomation font. It's a free download. It has provided better barcodes than the Free 3 of 9 font. You can print your barcodes in Access by simply making a control on the form and changing the font to your barcode font. Keep in mind most barcodes have to have an asterick * before and after them. So in the control you might need this: ="*" & [YourFieldName] & "*"
Plater 7,872
Recognized Expert Expert
We solved a similar problem by programming the barcode reader to append a newline(you could use any special character probably) and based on that we knew when to jump locations
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: CHANGE username to westes |
last post by:
What are the most popular, and well supported, libraries of drivers for bar
code scanners that include a Visual Basic and C/C++ API? My requirements
are:
- Must allow an application to be written to a single interface, but support
many different manufacturers' barcode scanning devices. I do not want to
be tied to one manufacturers' software interfaces.
- Must support use of the scanner from Visual Basic, and ideally from C/C++
and...
|
by: Chad |
last post by:
Hello,
I am working with a client who wants to integrate barcode scanning
technology into a website I'm building for him (ASP and ASP.NET site).
Specifically, he wants to use barcode scanning in his order
fulfillment process. He wants an employee to bring up an order, then
scan in the products being shipped with the order, then mark the order
as processed.
I've read posts that point to barcode scanners that will simulate
|
by: teddysnips |
last post by:
My clients want their employees to log in by scanning a barcode on
their passes. I've set up a web page with a text box to capture the
scanned barcode.
Two questions.
1. Can anyone think of a neat way to authenticate the scanned barcode
without any further user action? The barcodes I'm using to play with
the system are the ones on my CDs which have an embedded CR, which
nicely press the default ASP button, but I may not be able to...
|
by: Bruce D |
last post by:
I'm researching a VB .NET project that will have two functions:
1 - scan images using TWAIN drivers of scanner
2 - read barcode of that scanned image
I've been researching many companies and was wondering if anyone had any
recommendations of any options about the companies I've listed here. Your
input is appreciated!
The thing here is that I like Dosadi:EZTwain...but they don't offer barcode
recognition. It seems these are the only...
|
by: Camelduke |
last post by:
My company is considering the development of a mobile device that integrates
2D barcode scanning among its features.
However, our engineering team is stymied as they believe that we are unable
to incorporate 2D barcode scanning technology without licensing the
technology specifically from Symbol--which is obviously difficult to obtain
and costly to implement (and effectively allows a potential competitor to
control our ability to sell...
| |
by: Samuel Shulman |
last post by:
I would like to add barcode functionality to my POS program
How does one attach barcode reader is it usually USB port
How can the program get the data read by the device
Thank you,
Samuel
|
by: nmrpa91290 |
last post by:
Hi,
I am in the design phase of building a database that will track the
productivity of my warehouse. I am thinking of using a barcode
scanner to assist me with this. Employees will hopefully be scanning
a barcode which will communicate to the computer that the employee did
some type of task. Employees will be identified by ID badges which
will contain string data to identify them and hopefully log them in.
Is this a good way to keep...
|
by: jim |
last post by:
I need to have 2 simple barcode reader applications finished by midnight
tonight. I have never written any barcode reader software and need any help
that you may be able to offer.
I do not know what type of barcode the user will have, so I need to be able
to accept input from any industry standard barcode reader.
I need to check the barcodes scanned to see if they are in a database of
acceptable barcodes and simply show ACCEPT or...
|
by: phill86 |
last post by:
Hi,
I want to scan a barcode into a combobox and then set the focus to next combobox as soon as the first barcode has been scanned I am using the following code on the on change event in CboBox1
Me.CboBox2.SetFocus
this works but the barcode information that is scanned in cbobox1 is copied to cbobox2 .
I tried inserting a break point in the code and for some reason the barcode number is scanned into the code window????
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |