Reading a bar code is using the var code scanner. Note to read the manual with the Bar code scanner... which normaly comes with default set as Code 39 fonts. If your bar code is made as Code39 or something else.. suitably set the scanner for that default code reading.
So the scanner will automatically read to that mode set and the input will be sent to keyboard buffer as if keyed in.
SO as per example, if the bar code of 1234 is made with Mode39 format using the bar code fonts(I am not explaining as Walid has done it already), when the cursor is waiting at the numeric variable data input place, and you scan at this stage the bar code of 1234, the keyboard will automaticaly get the value 1234.
Tips.. If you include the code of CR or TAB suitably to 1234 in the example and create the bar code, the input will make trigger the data acceptance as well and reach the next stage. In the case of item codes, for example, if you add a special character+CR to the bar code... and then in the valid event of the item code, you can check for the last character=special charater presence, and fill up the required other column values of price, default qty as one etc. and then even jump to add one more line item and place the cursor on the next item code acceptance.
These explanations are to throw some light into the barcode aspects and will help you understand more.
So reading a bar code is not at all a problem, it is very simple. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com