I guess you want to realize something like at the documentation database.
joodb.feenders.de/support/documentation.html
This was made with javascript and it's rather complex.
<script type="text/javascript">
window.addEvent('domready', function(){
if ($('result')) {
var flipContent = new Fx.Accordion($$('#result .fliphead'), $$('#result .flipcontent'),{alwaysHide: true, display: -1,trigger: 'click'});
}
});
</script>
An easy way is to hide the subform result by default and put them into a container wit a class (e.g. .subresult).
Now you can add an "onclick:$$('.subresult).toggle();" to a button or link.