If I understand correctly, the problem is that Form1 continues running while Form2 waits for input. You can avoid this by making Form2 modal: Form.WindowType = "1 - Modal".
>Hi
>
>In fom1 I am using a button with scan command.
>
>If a field is empty, do a small form (form2) to input data the field.
>
>It does not work, because looks like execution continues and the fields in form2
>becomes gray.
>
>Tried locate command instead of Scan, but still the same.
>
>Form2 is always on top.
>
>Does anyone has a better way to do it ?
>
>Moises
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)