Hello everyone,
I am new to Access and designing my first Database. I have multiple sub-forms in my main form. i want, that when one sub-form is expanded the other one gets collapse. so please anyone guide me to get this feature.
Thanks
April 9, 2024
Click here to learn more 💡
May 10, 2024
Hello everyone,
I am new to Access and designing my first Database. I have multiple sub-forms in my main form. i want, that when one sub-form is expanded the other one gets collapse. so please anyone guide me to get this feature.
Thanks
Reported content has been submitted
* Please try a lower page number.
* Please enter only numbers.
I think I would use a tab control, and place each subform on a separate tab.
That way, only one subform will be visible at a time.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Reported content has been submitted
1 person found this reply helpful
·Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Thanks,
but i don't want to link all sub-forms.
i want that only those sub-forms will appear that are selected by user.
any help...
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Thanks,
but i don't want to link all sub-forms.
i want that only those sub-forms will appear that are selected by user.
any help...
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Thanks Ken Sheridan,
but the thing that i want to do is:
user select a sub-form from combo-box and that sub-form appears.
and if user again select another sub-form so that will appear but the first one get close.
i want that if user select another sub-form the first one get collapse.
thanks
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
user select a sub-form from combo-box and that sub-form appears.
You'd do exactly the same as is done in my demo, but with the code in a combo box's AfterUpdate event procedure rather than an option group's. Remember that if the value of the combo box is a string expression, rather than a number as with an option group,
you must wrap the value in quotes characters in the code.
Note what I said about the need in your case to also change the LinkMasterFields and LinkChildFields properties of the subform control in the code. If the subform is not linked to the parent form set both to the vbNullString constant.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
There is an alternative to using a Tab control. While I think a Tab control is an easier interface, you can try changing the Source Object.
A subform control is a special control that is used to display another form, especially one that can be linked to the main form. The name of the other form is used as the SourceObject (a form property) of the Control. So you could change (in VBA code) the SourceObject of your subform control. This would then display the selected form within the subform control.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
....................So you could change (in VBA code) the SourceObject of your subform control. This would then display the selected form within the subform control.
That's exactly what my demo does, but for some reason the OP seems to be having a problem getting their teeth around it.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.