Avatar

Level 10

Depending on your form structure it can be as easy as a line of FormCalc, or you may need to write a loop to go through the form.

If all the subforms you want to target are under one continuous subform then in FormCalc:

PathToSubform.Subform1[*].presence = "hidden"

will target all instances of Subform1.

If the target subforms are spread all over the place you would need a loop to go through the form and find them. I'll have to leave that to someone else, I know how to do the loop but I'm not sure how to access the subform names and I don't have the time to look it up right now.