My Assistant
![]() ![]() |
|
|
Jun 9 2009, 06:58 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 155 From: North East England |
Hi
I have a sub sub form on a main form,the main form and 1st subform are set to display as a single forms,the 2nd subform is set to datasheet view. I have a 3rd subform that I would only like to become visible after the user selects a specific value from a combo box on the 2nd subform. I "think" I have worked out that Access doesn't allow you to hide / unhide subforms if the datasheet view is used? If this is correct, is there some sort of workaround?.The 'hidden' subform could display in datasheet or single form view. Kind Regards Ritchie |
|
|
|
Jun 9 2009, 07:21 PM
Post
#2
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
You can hide the third subform regardless of the type of form that is displayed. If the name of the third subforms control is MyThirdSubformControl then you can set that controls Visible property to Yes or No using code. Try it. Use the Wizard to add the third subform to the main form and in design view of the main form set the Visible property of the new subform control to No...the subform should not be visible when you open the main form in normal view.... By the way, you can't put a subform on a form that is in datasheet view so I am assuming the third subform is on the main form and not in the second subform...
If Me.NameOfComboBox = "Something" Then Me.Parent.NameOfThirdSubformControl.Visible = True End if hth, Jack |
|
|
|
Jun 9 2009, 07:59 PM
Post
#3
|
|
|
UtterAccess Addict Posts: 155 From: North East England |
Jack
Many thanks,works a treat! Regards Ritchie. |
|
|
|
Jun 9 2009, 08:02 PM
Post
#4
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
Ritchie -
You are very welcome and I'm glad I was able to assist... Jack |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 20th June 2013 - 03:39 AM |