在CMD CLICK事件中
加入如下代码:
str2 = "{table.name}=" & text1.Text
CrystalReport1.ReportFileName = "d:\vb\crt\1.rpt"
CrystalReport1.SelectionFormula = str2
CrystalReport1.Action = 1程序运行,我在text框中输入abc,点击CMD按钮后,
弹出下列错误提示框
实时错误'20515'
error in formula <record_selection>
'{table.name}=abc'
a number,currency amount,boolean or string is expected here一个奇怪的现象是:如果我按照ID(即TABLE的主键)查询就可以
按别的查询(例如上面的NAME)都是出现上述错误请大家帮助解答
谢谢