>>why not put the following code in the deactivate method if an error has occurred
>>
>>say on page 3's deactivate method
>>
>>
>>if error (etc)
>> thisform.pageframe1.activepage=3
>>endif
>>
>>this should force the focus back to the page
>
>Tried that, didn't work. The clicked on new page got the focus anyway. I guess the ACTIVEPAGE method works everywhere except in the DEACTIVATE method.
What a pain. You can force the issue as follows
Create a property called pageon and a second property called
pageok
in the error check on the deactivate if ok set pageok to .t. else to .f.
now in the activate page section of each page do a check
if pageok set the pageon to the newpage else set the activepage to the pageon value
Let me know if this doesn't work.
HTH