I am working with a form in VB6 linked to an Access db. I need to be able to have a field on this form accept a scanned barcode value, then search for a record based on that value. In access alone this works, but I've noticed in vb it does not.
The scanner and keyboard are both plugged into a spliter that is plugged into the keyboard jack. All the barcode scanner does is send the scanned value and a carriage return. I've noticed there is ther is no OnEnter event in vb. Is there a way to trigger the search using an 'if' statement on the field, like:
if 'barcode value' And 'carriage return' then
Or is it something more. I've notice that even though the search field on myvb form won't accept a carriage return, It doesn't even accept a barcode value. Any ideas on how to do this (the easy way) would be extremely helpful.