SQL Server Why doesn`t work Crystal Reports XI with parameter?

wecizke3  于 2023-06-21  发布在  其他
关注(0)|答案(1)|浏览(162)

community, I have a tickler. In the report with ADO (OLE DB connection) appears next error Error Below you can see partly example of a command. Command There is no syntactic error near the SET keyword. When I manually select an empty string for CLIENT_NUM everything works fine. Is anyone have suggestions?

I tried to change the empty string to 'all' but this doesn`t resolve my problem. In CR UI I tried many times with the default value and without. Maybe it depends on version of the Native Client?

ibrsph3r

ibrsph3r1#

It was a basic error. If I want to use the client number, it works; but if I want to get results for all clients and use an empty string, the parameter must be concluded in single quotes. Like {?CLIENT_NUM} instead of {?CLIENT_NUM} .

相关问题