>Is there a way I can call the textbox when event from a command button to rechange the return value?
You can use something like:
***Textbox.When event
Return !Thisform.Noedit
***Commandbutton.click
Thisform.Noedit=.T.
Edward Pikman
Independent Consultant