Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a parent report with 4 child

Status
Not open for further replies.

dodgyone

Technical User
Jan 26, 2001
431
GB
I have a parent report with 4 child reports embedded for each parent record.

Each child report displays the maximum record as necessary but there may not be a suitable record and so it will be displayed as a blank.

The parent report looks at each child report to see whether the check box is ticked or not and a label is displayd depending upon this result. I've started the If statement but I get errors whenever I get to a blank child report. How can I code to tell the program to ignore and carry on if the child report is blank?

Cheers....
 
Check the result of your iif statement for an error and respond to it by using the IsError function:

=IIf(IsError(MyIIfStatement)=True,"Error Returned",MyIIfStatement)

Replace MyIIfStatement with the IIf statement you've got that works when the Child report exists.

HTH Joe Miller
joe.miller@flotech.net
 
Sorry.... not too sure where to place the code etc.

I am using the on_format event to check these child reports... is that correct?

Thanks....
 
In the control source of your text box. Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top