>thanks a lot jos and marcia, it solves my problem on closing the form. unfortunately, sooner im planning to add a button on my toolbar having a caption "EDIT".
>upon clicking the edit button, it will call my custom method EditEvent:
>myMacro = cCurwind + ".EditEvent()"
>&myMacro
>
>a "SAVE" button would be:
>myMacro = cCurwind + ".SaveEvent()"
>&myMacro
>
>so you see, i have to keep the name of the form to be able to call its method.
Eric,
Why don't you follow the path that Marcia showed you?
_Screen.ActiveForm.SaveEvent()
--sb--