[英]Crystal Report, how to use two condition selection formula?
Crystal Report, how to use two condition selection formula? Crystal Report,如何使用两个条件选择公式?
i want to use my Employee ID and the Date for the condition. 我想使用我的员工ID和日期作为条件。 how can i combine the two?
我如何结合两者?
CrystalReportViewer1.SelectionFormula = "{PayrollHistory.ID} ='" & txtempid.Text() & "'" CrystalReportViewer1.SelectionFormula =“ {PayrollHistory.ID} ='”&txtempid.Text()&“'”
and 和
CrystalReportViewer1.SelectionFormula = "{PayrollHistory.EndDate} ='" & txtDate.Text() & "'" CrystalReportViewer1.SelectionFormula =“ {PayrollHistory.EndDate} ='”&txtDate.Text()&“'”
您可以使用AND
连接条件:
CrystalReportViewer1.SelectionFormula = "{PayrollHistory.ID} ='" & txtempid.Text() & "' AND {PayrollHistory.EndDate} = '" & txtDate.Text()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.