If anyone is still having problems with this issue (as I was), the correct syntax is:
=IIf([Reports]![Name of Main Report].[Report]![Name of Subreport].[Report].[HasData],value if true,value if false)
HasData must be preceded by the 'Report' identifier in order to function, otherwise Access...