Help (I failed again to figure out search question)
my problem is, how do I pass all {so_item_trans.soit_id} from main report and use them as search criteria for the subreport?
crystal reports XI, ODBC connection to an informix database.
main tables
po_hdr
poln
so_item_trans
main joins
{po_hdr.poh_id} inner join to {poln.poh_id}
{poln.poh_id} left outer join to {so_item_trans.soit_hdr_id}
{poln.pol_id} left outer join to {so_item_trans.soit_ln_id}
main report filtered by {?PO} returns matching {po_hdr.poh_nbr}
grouped by {po_hdr.poh_nbr}
details {so_item_trans.soit_id} (1 to many lines)
main example
Header
{po_hdr.poh_nbr}= LF045
details
{so_item_trans.soit_id}= 17229
{so_item_trans.soit_id}= 17230
{so_item_trans.soit_id}= 17231
{so_item_trans.soit_id}= 17232
In the subreport
subreport tables
po_hdr
rec_hdr
ioq_hdr
so_item_trans
subreport joins
{so_item_detail.soit_id} inner join to {so_item_trans.soit_id}
{po_hdr.poh_id} left outer join to {so_item_trans.soit_hdr_id}
{rec_hdr.rch_id} left outer join to {so_item_trans.soit_hdr_id}
{ioq_hdr.ioqh_id} left outer join to {so_item_trans.soit_hdr_id}
subreport grouped by {so_item_detail.soit_id}
subreport example
header
{so_item_trans.soit_id}= 17229
details
{po_hdr.poh_id}
{ioq_hdr.ioqh_id}
{rec_hdr.rch_id}
header
{so_item_trans.soit_id}= 17230
details
{po_hdr.poh_id}
{ioq_hdr.ioqh_id}
{rec_hdr.rch_id}
header
{so_item_trans.soit_id}= 17231
details
{po_hdr.poh_id}
{ioq_hdr.ioqh_id}
{rec_hdr.rch_id}
ect...
thanks in advance for looking.
my problem is, how do I pass all {so_item_trans.soit_id} from main report and use them as search criteria for the subreport?
crystal reports XI, ODBC connection to an informix database.
main tables
po_hdr
poln
so_item_trans
main joins
{po_hdr.poh_id} inner join to {poln.poh_id}
{poln.poh_id} left outer join to {so_item_trans.soit_hdr_id}
{poln.pol_id} left outer join to {so_item_trans.soit_ln_id}
main report filtered by {?PO} returns matching {po_hdr.poh_nbr}
grouped by {po_hdr.poh_nbr}
details {so_item_trans.soit_id} (1 to many lines)
main example
Header
{po_hdr.poh_nbr}= LF045
details
{so_item_trans.soit_id}= 17229
{so_item_trans.soit_id}= 17230
{so_item_trans.soit_id}= 17231
{so_item_trans.soit_id}= 17232
In the subreport
subreport tables
po_hdr
rec_hdr
ioq_hdr
so_item_trans
subreport joins
{so_item_detail.soit_id} inner join to {so_item_trans.soit_id}
{po_hdr.poh_id} left outer join to {so_item_trans.soit_hdr_id}
{rec_hdr.rch_id} left outer join to {so_item_trans.soit_hdr_id}
{ioq_hdr.ioqh_id} left outer join to {so_item_trans.soit_hdr_id}
subreport grouped by {so_item_detail.soit_id}
subreport example
header
{so_item_trans.soit_id}= 17229
details
{po_hdr.poh_id}
{ioq_hdr.ioqh_id}
{rec_hdr.rch_id}
header
{so_item_trans.soit_id}= 17230
details
{po_hdr.poh_id}
{ioq_hdr.ioqh_id}
{rec_hdr.rch_id}
header
{so_item_trans.soit_id}= 17231
details
{po_hdr.poh_id}
{ioq_hdr.ioqh_id}
{rec_hdr.rch_id}
ect...
thanks in advance for looking.