Hi thereI've got a little problem in changing a tab control enabled parameteri have a tab control named tabctl0within that tab I have 3 pages: page1,page2,page3I want to depend the enabled parameter of each page on a field in the main form.the field in the main form = dovisitif me!dovisit = 1 then me.page1.enabled = false me.page2.setfocusend ifI wrote that code but everytime i get the message that you cant change a page control if it is active.can somone help pleasethanx alot in advanceNoam