Richard,
Check out thet releaseType property...
if thisform.releaseType = 0
else
endif
>I'm pretty certain that this problem must have been brought up in the past, but I will risk being annoying and ask it anyway :)
>
>I have a form with a page frame with several tabs. Each of the tabs is a separate data entry screen. My problem is that if I want to either move between tabs, close the form, or save existing data by clicking on a "Save" button which runs a save routine, if the cursor is in a field which has a Valid method check and that check returns .F., I am unable to exit that tab until I have entered correct data. In some cases, the reason for moving to another tab is to get that data, so I end up having to exit the application entirely or in extreme cases close the application with Task Manager.
>
>How do I bypass a Valid method when I click on a button? I hope this explanation of the problem is clear enough.
>
>TIA
>
>Richard Bates
Steve Gibson