Combo box and barcode scanning

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phill86
    New Member
    • Mar 2008
    • 121

    Combo box and barcode scanning

    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

    Code:
    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
  • beacon
    Contributor
    • Aug 2007
    • 579

    #2
    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.

    Comment

    • Denburt
      Recognized Expert Top Contributor
      • Mar 2007
      • 1356

      #3
      Why are you starting a new thread for this did you lose the last one? http://bytes.com/topic/access/answer...rcode-scanning
      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.

      Comment

      Working...