Chris,
This creates a loop...your lostfocus() sets the focus right back onto the form, so this is expected behaviour.
Can you restate exactly what it is you're trying to accomplish?
>I decided to start from scratch and build a little test project to seem if I could recreate the behaviour - I can with two forms...
>Form A has textbox and button...
>
>Form A - lostfocus
>
>lnAnswer = messagebox(" Lost Focus of the form ", 0 + 48 + 0, "System Message")
>thisform.txtText.setfocus()
>
>
>Form A - the button click
>
>do form formB
>
>
>When the first form is loaded and the button clicked you get one messagebox then second form loads up - if you then click anywhere on the second form you get the two messageboxes - one after the other...
>
>I have recreated it - now to solve it!!!
Steve Gibson