>Cursor: crsDisclaimers > >DisclaimerID DisclaimerText > > >Cursor: crsFunds > >FundTypeID FundName FundID DisclaimerID > > >SELECT crsFunds (ORDERed by FundTypeID) >SCAN > > * Make the results do this: > > Top Disclaimer (SQL from crsDisclaimers for the FundType) > > DISPLAY individual fund records for the FundTypeID > > Bottom Disclaimer (SQL from crsDisclaimers for the FundType) * > Footnotes (SQL from crsDisclaimers for the FundType) > >ENDSCAN >>
SELECT crsFunds (ORDERed by FundTypeID) lnFundId = 0 && Some nomber that you are sure FundTypeID can't be lbFirst = .t. SCAN * Make the results do this: IF m.lnFundId # FundTypeID OR; m.lbFirst IF NOT m.lbFirst Bottom Disclaimer (SQL from crsDisclaimers for the FundType) * Footnotes (SQL from crsDisclaimers for the FundType) ENDIF Top Disclaimer (SQL from crsDisclaimers for the FundType) m.lbFirst = .f. m.lnFundId = FundTypeID ENDIF DISPLAY individual fund records for the FundTypeID ENDSCAN