Assuming you are using a shared variable to pass the value from the subreport to the main report, reset that shared variable in a main report formula on (or before) the section where the subreport is placed.
By the way, consider using a SQL Expression (instead of a subreport). For even faster performance, you can also use the approach described here: Another option for sharing arrays