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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top