Error from Subreport

S

SAC

I have a main report with a subreport.

I have a control on the main report which references data on the subreport.
However subtimes the subreport has no data so the main report's control
errors.

How can I make the moan report's control a zero if the sub report has no
data.

Thanks.
 
G

GBA

try in the OnCurrent event of the main form put

Iif me.SubReportName.HasData=false then
me.ControlName=0
end if
 
Top