I am passing a value from a subreport to main report and in the main report this is the formula:
WhilePrintingRecords; shared numbervar Cafe; Cafe
If there is not a match between the main report and subreport, Then it prints the value from the previous…