>Hi,
>
>I am trying to stop user to go to another page when he has not filled in one of the text box in the current page. I wrote some code at the activate events of other page like if (textbox value) is empty, pgframe.page1.activate but it is not working.
>
>Can somebody give me idea ?
>
>Thanks in advance.
Write the code in the Deactivate event of the page with the textbox
if( empty( m.this.textbox1.value) )
NODEFAULT
return .f.
endif
Gregory