Hi Mike,
Thanks for the response. What do you mean about setting MyProp in the unload from a control? What am I supposed to be doing?
I return the value in the unload of the form but I also put it in the click of the textbox and in an OK command button. I guess that's too many times!! How do I close the form and pass the value from the click of the textbox if the password is correct?
>
>Are you still using the same variable names for both the parameter and return Value? You might try different ones. Also, are you sure your doing:
>
>
return thisform.myProp
In the unload of the form and not of a button or label (misclicks slow me down about ;-). Also, are you setting myProp in the unload from a control. You must remeber that by the time the form hits unload, all the controls have been destroyed.