Is there a way to base the number of rows in a table on a previous answer?