I have a layout with a sub-summary part based on a sort.
Sometimes the sub-summary part represents one record and sometimes more records.
If I put a record count summary field on the sub-summary part I can clearly see how much records are "behind" that summary.
I would like to script a button on that summary part that would either bring me to a list view if there are more than one record or straight to a form view if there's only one record.
I tried to put the result of the record count summary field in the script parameter but even if on screen the number of records is correct when it is evaluated it returns the total of all records and not of only that sub-summary part.