Good day,
I know this is an old topic but I wanted to make a contribution especially when I found something that works.
These 2 lines of code will basically expand or collapse all. If you have nested subforms, you simply have to add 1 line of code per subform. Just make sure the syntax is...