I do not know how you design your database and forms for the scanner.
I would suggest a “hidden” textbox. Don’t touch or set the control properties Visible just leave to “Yes”. Set the control’s “Back Color”, “Border Color”, “Fore Color” to the same color as the form’s background color. So that it looks invisible. You can reduce the size until you can’t see the cursor.
The rest of the visible textbox properties, set it to Enable = Yes and Locked = Yes and Tab Stop = No.
However, you still can use the mouse to set the focus. To prevent that, use the visible textbox “On Mouse Down” and “Double Click” event to trap and set focus the the “hidden” textbox so that you can use the scanner with the event to fill the visible textboxes. Use the OnCurrent event to set focus for the “hidden” textbox. The “hidden” AfterUpdate event will give an idea on how to fill the visible textboxes.
As I do not have the Scanner with me, I had to use the “hidden” textbox to manually input data and use the AfterUpdate Event for this test. You can try it out without the scanner too. Just make sure the “hidden” textbox is always in focus when you use the scanner.
Please refer to the “Table1” for more details of sample data.
Refer to the attached database sample.
Hope the sample will help you.
Hi unclejoe,
Yes, i did try ur sugguestion without using the code from missingling but still no value reflected in the field.