Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Help with parameters when using a sql command based report in Crystal Reports 2008.

$
0
0

Dell,

 

Ok, so I looked at your "Best Practices When Using Commands with Crystal Reports" (very helpful). when I looked at what you had and what Abhilash had, they appear to be the same basic idea. So I went into my existing sql command and add the following to my existing where clause:

AND ('{?ordered_by}' = '*ALL' OR o.ordered_by IN '{?ordered_by}')

 

I added a prompt {?ordered_by} as a string and checked the box for multiple values.

 

But when I click OK to save and close the command window, I get the following error:

Database Connection Error: '42000:[Microsoft][SQL Server Native Client 10.0][SQL Serer]Incorrect syntax near the keyword 'ALL'. [Database Vendor Code: 156 ]'


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>