>I have a form which calls a program to check the validity of the data on the form. It is so complicated that it must be done when all fields have filled in.
>
>How do I set the focus back to an field in the screen.
>
>Myform1.gauge.setfocus() does not seem to work.
>
>The program is currently called from a command button.
>
>Any ideas
SetFocus() is the common way to do this. I don't know what is going wrong in your case. Perhaps you can try SetFocus() in as simple sample form.
Hilmar.
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)