G
Green Biro
I have a report for which the recordsource is my main table
The report contains three subreports, which are all lists of records from
tables that have a one to many relationship with my main table. All very
easy, just linking the main_id to the foreign key for each subreport.
My question is, "How can I get my report to skip the main record whenever
NONE of the subreports have related records?"
I'm thinking that maybe an approach would be to change the recordset of the
main report to a query that includes the subTables. I haven't done this yet
for two reasons:
1) It seems a bit inefficient to query the subTables at the top level when
they are being queried again for each subReport
2) I'm not exactly sure how to set up a query that checks for the existence
of records in any of three subTables.
Please can someone give me some guidance on the best way forward.
Thanks
GB
The report contains three subreports, which are all lists of records from
tables that have a one to many relationship with my main table. All very
easy, just linking the main_id to the foreign key for each subreport.
My question is, "How can I get my report to skip the main record whenever
NONE of the subreports have related records?"
I'm thinking that maybe an approach would be to change the recordset of the
main report to a query that includes the subTables. I haven't done this yet
for two reasons:
1) It seems a bit inefficient to query the subTables at the top level when
they are being queried again for each subReport
2) I'm not exactly sure how to set up a query that checks for the existence
of records in any of three subTables.
Please can someone give me some guidance on the best way forward.
Thanks
GB