How to change a page control parameter

rsfnoam

Registered User.
Local time
Today, 05:42
Joined
Aug 31, 2011
Messages
25
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
 
I don't completely understand but if you are getting that error message, set focus to another control before you change the Enabled property.
 
I don't completely understand but if you are getting that error message, set focus to another control before you change the Enabled property.

Thanx very much for the reply.That helpedI just put in the if that setfocus for the page and it worked.Again thanx alot
 

Users who are viewing this thread

Back
Top Bottom