>Hi,
>
>I have few fields on a form. The first field is barcode and the second field is Item Code. The barcode field is filled by Barcode Scanner and if there is no barcode the cursor moves to Item Code field and we put the item code and so on..
>
>When the task is finished the cursor does not focus to the barcode field again and it jumps to item code field, even though in command button 'click' I put the code ThisForm.mbarcode.setfocus (mbarcode is the barcode field name)
Do you have any other code in the commandbutton click after that line? Do yopu have code in the When() of the mbarcode textbox that could prevent it fro getting focus?
--sb--