Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force bar code reader value into a certain field??

Status
Not open for further replies.

neemi

Programmer
May 14, 2002
519
GB
I have a bar code and a form on a field with a drop down menu, a sub form, a tempory field the bar code number should go into and some command buttons.

The drop down menu and command buttons need to be enabled but if the tempory field looses control then when the scanner is used it does not go into that field. I need it to go to that field as I have set an afterupdate event for it to append it to a table and then add the field to the list in the sub form.

I have disabled the sub form to prevent that from getting focus, so that the scan works.

But is there another way I can always make sure the scan number alway goe's into the temport field. even if it looses focus i.e. the rp down gets focus by accident of the cmd buttons do etc.

Please advise.

Neemi
 
Make sure that no other controls have the tab stop property enabled. Then, make sure that the last thing the button that sends the data where you want it to go, sets the focus back to the barcode input field. Any other buttons (i.e. close, or whatever) should also have as the last thing they do is set the focus back to the input field (except for form close, etc.)

"Advice is a dangerous gift, even from the wise to the wise, for all course may run ill." J.R.R. Tolkien
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top