Kinda confusing. You're calling a routine that makes 2 subforms visible, or not. Nowhere do you code to close a subform, yet you say you want one to close. Your IF on the variable "Title" looks incomplete as well. How is this determined, as I see no evidence of how the code makes that decision? In the current event, you make title "", yet in the sub you don't check for "". Nor do you pass the title value to the sub, even if it is "". Maybe explain more about what's supposed to happen when, and why.
Note - it's far easier for us if you post nicely indented code within code tags rather than a picture. To make significant re-writes, we have to write everything out when we could be copying text. Thanks.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.