Forgive my clumsiness, I am trying to explain it more clearly.
Just so you know what it is, it is an entry of goods into the warehouse when a lorry arrives.
In ed1 it's "pallets", ed2 it's "boxes" and ed3 it's "units".
Each item that arrives on pallets has a number of boxes and each box can have a number of units.
Example, we start, a pallet has arrived : item 0000001
ed1=0
ed2=0
ed3=0
The user is given a pallet and the user types it in ed1.
ed1 (pallets): 1
Each pallet contains 20 boxes
When passing the focus to ed2 it is multiplied 1x20 and displayed:
ed2 (boxes): 20
Now the focus goes to ed3 (units), if each box contains 10 units:
ed3 (units): 200
Finally press the button and 200 units are saved.
The problem is that when the focus is on ed1 and the user types "1 pallet", if the user presses the save button, the units will be 1x0x0=0 because the focus has not been passed and the value shown in ed2 and ed3 has not been accepted.
That is why I would like to know how I can "simulate" that the focus has moved to ed2, that the user has then moved to ed3 and finally clicked on the button.
I hope I have explained myself better with the example.
Thank you very much for your help.