Using your checkbox change_event would be more convenient for what you are trying to do
Thanks for the suggestion; i changed from click to change. However, the script is still not working.
Still looking for suggestions.
What exactly is the issue? Is it not showing or not hiding when you change the checkbox? From your description you have the two text boxes set to invisible but your script is only changing the presence of the subform. If you show the subform without changing the presence of the textboxes, they will remain invisible. If you want everything to show/hide together, set the presence of the textboxes to visible and just change the subform presence as you are now.
That was exactly it; the code referenced the subform, not the text objects in the subform. When i changed the presence to your suggestion, the code worked perfectly.
Sometimes you cannot see the forest for the trees.