Jan 3, 2005 #1 pdtit Technical User Joined Nov 4, 2001 Messages 206 Location BE Hi there, I have a form on which I have a tab control with 2 pages; one is used for main data, the other one for detailed data. If on my form a checkbox "detailed" is not selected, I want the "detailed" Page be disabled as well. Regards, Peter
Hi there, I have a form on which I have a tab control with 2 pages; one is used for main data, the other one for detailed data. If on my form a checkbox "detailed" is not selected, I want the "detailed" Page be disabled as well. Regards, Peter
Jan 4, 2005 #2 DrSimon IS-IT--Management Joined Dec 14, 2001 Messages 674 Location GB This should work: Code: Private Sub Detailed_AfterUpdate() If Me.Detailed = True Then Me.Page2.Visible = False Else Me.Page2.Visible = True End If End Sub You'll need to decide which you want as the default: with or without detail Simon Rouse Upvote 0 Downvote
This should work: Code: Private Sub Detailed_AfterUpdate() If Me.Detailed = True Then Me.Page2.Visible = False Else Me.Page2.Visible = True End If End Sub You'll need to decide which you want as the default: with or without detail Simon Rouse
Jan 4, 2005 Thread starter #3 pdtit Technical User Joined Nov 4, 2001 Messages 206 Location BE Thank you very much for this fast answer !! It works great, Regards, Peter Upvote 0 Downvote