Thanks for your quick reply,
I placed the activepage code in and though the correct page is the PageFrame.activepage it is still displaying the wrong page.
I don't know if this makes any difference but I can't change the ActiveControl setting.
>Hello Michael
>
>thisform.pageframe1.activepage = 1
>thisform.pageframe1.activepage = 2
>yada yada
>
>
>>Good Morning,
>>
>>Another simple question.
>>
>>I have a form which has a pageframe with two pages.
>>
>>When a user clicks on a command button on page1, I want page2 to be displayed. The code to show which values to display runs correctly but Page2 doesn't display, only Page1 when I pass the ThisForm.PageFrame.Page2.click() method.
>>
>>Page1 and Page2 are both enabled.
>>
>>Any suggestions would be greatly appreciated.
>>
>>Sincerely,
>>
>>Michael
Send me an email when the shouting stops