我想通过SelectionFormula来进行筛选,根据输入的年份,选出某一年份的记录。
而数据库里的日期date字段有年月日。这个该怎么做?谢谢。
string y=this.textBox1.Text;
this.crystalReportViewer1.SelectionFormula="{Sales.date}='"+y+"'";
this.crystalReportViewer1.RefreshReport();
我编的老有格式错误。请高手改下代码。