By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,496 Members | 1,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,496 IT Pros & Developers. It's quick & easy.

Combo box and barcode scanning

P: 121

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

Expand|Select|Wrap|Line Numbers
  1. 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????

Any help is much appreciated

Regards Phill
May 11 '09 #1
Share this Question
Share on Google+
2 Replies

P: 579
Hi Phill,

I'm not sure if this is the answer or not, but have you tried placing that code in the AfterUpdate event for CboBox1 instead of the OnChange?

I think you might be better server testing it out by actually typing values in the combobox first and then, once it works, trying to scan it. I have a sneaking suspicion that if you type it right now with the OnChange event, that it will still copy to the other combobox.
May 11 '09 #2

Expert 100+
P: 1,356
Why are you starting a new thread for this did you lose the last one?
There are several professionals who have been trying to help on that thread.

If your code window was the active window when you scanned the Barcode then that will happen.

I will be closing this thread.
May 11 '09 #3

This discussion thread is closed

Replies have been disabled for this discussion.