1:报表添加了参数,分别为: pognids ,start , end
2:数据集dsBussiness分别添加了三个绑定了以上三个参数
3:数据源用的ODBC, sql中拼接参数
select * from a where paydate '@startDate' and '@endDate' and fdi_ognid in (@pognids) 预览提示
”索引超出范围。必须为非负值并小于集合大小。“
另外,我看到这个帖子
https://help.grapecity.com.cn/pa ... ion?pageId=50016955
动态拼装sql
="select * from 销售明细 where 1=1 " & IIF(Parameters!报表参数1.Value="", "", " and 销售大区='" & Parameters!报表参数1.Value & "'")
我也没实验成功,odbc 可以这样动态拼装sql吗?
|