Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to disable a tab control page based on value in other field

Status
Not open for further replies.

pdtit

Technical User
Nov 4, 2001
206
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
 
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
 
Thank you very much for this fast answer !!

It works great,

Regards,

Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top