Read Barcode after scanning

tt1611

Registered User.
Local time
Today, 16:43
Joined
Jul 17, 2009
Messages
132
Good Morning All
I am trying to move forward with some new features to an app I am building for our asset management system.

I have a textbox field on a form that gets focus on load and the idea is for a user to scan a barcode (device serial) into the box.

On clicking the search button next to the field, a recordset is open and the device serial is searched for.

As of right now, the problem I have is that the event is only fired when the user clicks the go button (naturally).
Is there a way as anyone would know to get the search event to fire up after the scan is complete (something similar to sendkeys) but the event is to fire as soon as the scan is complete and the last character from the barcode is captured in the textbox.

Please let me know if you need anything clarified..
Thanks in advance for your help.
 
Hey
This message was posted in a wrong forum area earlier and I had to move it over here. I received a response from JamesMcS adviced to put my code in the textbox onchange event.

Well this event fires as soon as the first character is scanned into the system and I need to capture the whole barcode.

Would anyone else happen to have any ideas on this?
 
Did you try the AfterUpdate event of the text box?
 
Hey Jdraw
Thanks for your update. Well embarrasingly, this is actually the first event I had tried running my code on. The scanner however wasnt programmed to throw a carriage return after the text box was updated so naturally nothing was happening after a barcode was scanned. I spent the next 6 hours trying to find another event to fire the code on before I was told about the scanner. Gotta love bosses. Anyhow, we programmed the scanner and as you have mentioned, I transferred my code back to the after_update event which is what it should correctly be and now the code works as it should.

I appreciate your help men.

Thanks all - The forum actually does rock.
 

Users who are viewing this thread

Back
Top Bottom