I came to the same solution. Had to play with the interactions between all the events a little, but it finally is working just like I need it to.
Thanks! Renoir
>You could add a property to the form, let say Foo. In the InteractiveChange event, you assign .T. or .F. to this property. Then you could put this code in the LostFocus:
>
>
IF ThisForm.Foo
> NODEFAULT
>ENDIF
HTH
>
>>Is there a way to assign code to the LostFocus of an object during runtime? I have a conditional statement that I want to use in the InteractiveChange method that would set the LostFocus to "NODEFAULT" or "" depending