How to collect records in crystal report using record selection formula to concatenate records

╄→гoц情女王★ 提交于 2019-12-25 02:28:34

问题


What i want is to collect records using record selection formula on the basis of criteria selection.

If i have 2 criteria's then i have 4 combinations using criteria selection. e.g.

if(cri1 <> 'ALL' and cri2 <> 'ALL') then record fetched
else if(cri1 = 'ALL' and cri2 <> 'ALL') then record fetched
else if(cri <> 'ALL' and cri = 'ALL') then record fetched
else if(cri = 'ALL' ; cri = 'ALL') then record fetched

(cri1 and cri2 are parameter fields used in crystal report)

In the same way for 3 criteria's, i will have 8 combinations. That is, for n criteria's i will be having '2' to the power of 'n' combinations That means for 10 criteria's i will be having 2 to the power of 10 combinations (i.e. 1024) combinations.

Well i want to know whether is there any way to collect data in much simpler way for n number of criteria's. Because for more than 3 criteria's it will be very confusing to collect the records.

** Please help on this..**

来源:https://stackoverflow.com/questions/18487960/how-to-collect-records-in-crystal-report-using-record-selection-formula-to-conca

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!