Perfect hugo, thanks
Slán
~M
>>hi all
>>I have a wierd one, this was working a while ago but is no longer and i have not changed any of the code. on a screen i have a button at the bottom "add" that is not in the pageframe. In the pageframe i have 7 tabs, with tab1 being active when the screen is first loaded. when a user clicks on the "add" button the code says thisform.pgf1.page2.active but this code does nothing, i put in a few wait windows and the code is passed through and run but this no longer activates the second tab. am i missing somthing?
>>Slán
>>~M
>
>Mark, you should use the ActivePage property of the PageFrame, something like
>
>
>with thisform.pageframe1
> .ActivePage = Iif(.ActivePage = .PageCount, 1, .ActivePage + 1)
>endwith
>
Go raibh maith agat
~M