水晶报表:选择公式中的多个条件 [英] Crystal Report:-multiple condition in selection formula
本文介绍了水晶报表:选择公式中的多个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是水晶报道的新手.我需要一些帮助来创建记录选择公式.基本上,我链接2个表,并希望生成一个取决于用户给定值的生成报告.这是我的代码:-
I am a newbie to crystal report. I need some help creating a record selection formula. Basically I am linking 2 tables and want to a generate report which depends upon values given by user. Here is my code:-
string temp = "{source.receipt_no}like 'RD*'AND {source_master.name}='" + frmReport.source_name + "' AND {source.ayid}='" + frmReport.aca_yr_id + "'";
crystalReportViewer1.ReportSource = rptDonar;
rptDonar.RecordSelectionFormula = temp;
请帮助
please help
推荐答案
首先在带有frmreport.source_name和frmreport.aca_yr_id值的水晶报表中直接在报表中尝试此RecordSelectionFormula,然后从此代码中删除并检查是否将其删除是否正常工作.
first try this RecordSelectionFormula in report directly in crystal report with frmreport.source_name and frmreport.aca_yr_id ''s value and remove from this code and check wether it is working or not.
这篇关于水晶报表:选择公式中的多个条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文