How are ya Aby123 . . . . .
The [blue]
OnChange[/blue] Event is a [blue]very bad choice[/blue] for your task. Although it logically fits what you desire to accomplish, [purple]
it has serious problems with changing focus[/purple] (no matter how its done).
[blue]
xaf294[/purple] has already mentioned using the [blue]Input Mask[/blue] of the control (providing your barcode input is of static length), but there's a little more to it. You need to set the [blue]AutoTab[/blue] property of the control to [purple]
Yes[/purple], and using the [blue]OnEnter[/blue] or [blue]GotFocus[/blue] events of the [blue]next control in the Tab Order[/blue], you set code to goto the next or new line.
BTW, to get to the proper event procedure:
[ol][blue][li]Put the cursor in the event line of interest.[/li]
[li] Then click the three elipses
just to the right.[/li][/blue][/ol]
This will take you to the event in the VBE editor window with the cursor in place. To return to Form Design View press [purple]Alt + Q[/purple].
See Ya! . . . . . .