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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with a nested subform

Status
Not open for further replies.

kennyb1

Technical User
Jan 11, 2007
2
US
I have a form with a subform containing a subform. I am trying to hide with both the subform and the subform's subform with the . visible property. My code works where there is one subform, but with two, I get an error that states I can not hide a form with focus. I have tried to .setfocus on the original form, but the subform's subform retrains the focus.
 
How do you load subform and subform of the subform?
Do you use:

subform.Show vbModal

Show us your code, it will be easier to help you.


Have fun.

---- Andy
 
I do not load the subform, what I am using to control what shows is the .visible property.

If Me.ipOverviewRate.Visible = False Then
Me.ipOverviewRate.Visible = True
Else
Me.ipOverviewRate.Visible = False
End If

If Me!ipOverviewRate!ipNonStdDrgCur.Visible = False Then
Me!ipOverviewRate!ipNonStdDrgCur.Visible = True
Me!ipOverviewRate!ipNonSTDDRGProp.Visible = True
Else
Me!ipOverviewRate!ipNonStdDrgCur.Visible = False
Me!ipOverviewRate!ipNonSTDDRGProp.Visible = False
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top