I have two recordsets being passed from a VB 6.0 program. I link these recordsets in the Database Expert using the customer number fields in both recordsets.
Recordset 1 is work orders and I use this in the main report.
Recordset 2 is a set of items that I use in the subreport.
In the main report, I group on customer number and then on work order number. For each work order, in the work order footer, I insert the subreport to show a list of the items in that recordset for the same customer number. (It is okay that there may be more than one work order being created for a customer, showing the list of items in the subreport on all work orders for a given customer).
This is working fine, but there are cases where there are no entries in Recordset 2 for a particular customer number. In that case, I would like to suppress the subreport, which prints on a separate page, as an addendum to the work order. However, I haven't used the data from Recordset 2 in the main report. Is there any way I can get a count of the matching records in recordset 2 while I am in the main report?
Thanks for the help!
Meryl
Recordset 1 is work orders and I use this in the main report.
Recordset 2 is a set of items that I use in the subreport.
In the main report, I group on customer number and then on work order number. For each work order, in the work order footer, I insert the subreport to show a list of the items in that recordset for the same customer number. (It is okay that there may be more than one work order being created for a customer, showing the list of items in the subreport on all work orders for a given customer).
This is working fine, but there are cases where there are no entries in Recordset 2 for a particular customer number. In that case, I would like to suppress the subreport, which prints on a separate page, as an addendum to the work order. However, I haven't used the data from Recordset 2 in the main report. Is there any way I can get a count of the matching records in recordset 2 while I am in the main report?
Thanks for the help!
Meryl