Nancy -
Ok. The code is called every time the user changes the record by adding, navigation, finding. I have four tabs. On the 3rd and 4th tab based on two check boxes on the first tab those pages may or may not be disabled. If the user is on the 3rd or 4th tab and I navigate, I want the form to be intelligent enough to determine if on the new record that page is also enabled and stay put or move to the first tab.
Running through the debugger I had an activePage of 3 which was supposed to be named "BuyerInfo" and was showing as "VendorInfo" from the pages collection.
>Dan-
>
>Where is this code? And what does happen?
>
>I put the following code in the page3 activate of a pf where I've changed the pageorder property of page4 to 1:
this.parent.activepage = 1
>NODEFAULT
>
>And, it works correctly.
>
>>I've known this from before but how do I'm trying to setup a generic routine and am not sure how to proceed.
>>
>>Here is the code:
>>
>>IF NOT THISFORM.PageFrame1.Pages( THISFORM.PageFrame1.ActivePage ).Enabled
>> THISFORM.PageFrame.ActivePage = 1
>>ENDIF
>>
>>
>>Well in design, the original order has swapped pages and none of the pages are in their original position. So how do I make a generic routine that will work with what I am trying to do above.