Hi @arnelgp,
I have found that the problem I have above is resolved when I make the main report and subreport link by Pallet_Number (this field is called 'pallet' in your example). However, when I change this your code doesn't seem to do anything unless I link the reports by...