Through Visual Basic 6 I pass dynamically the RecordSelectionFormula for a report(made with Crystal Reports 8.0.1.0) which connects to an Oracle 8 database. Everything works fine! BUT if i try to pass a RecordSelectionFormula like:
"AND ({ACTIVECUSTTRADEBUY.COUNT} <> 0 OR {ACTIVECUSTTRADEBUY.VALUE} <> 0 OR {ACTIVECUSTORDBUY.COUNT} <> 0 OR ACTIVECUSTORDBUY.VALUE} <> 0)", I get through my application, a Crystal Report Database Error:"ORA-00907 right parenthesis missing".
When I debug my VB code and transfer the RecordSelectionFormula string in Crystal, it works fine! Moreover, the SQLQuery for this string, as generated in Crystal also works fine! (i run it directly on Oracle through SQL plus too, no prob!) I think i'm driving insane, so here comes the question: is there any know problem concerning some specific "sql" syntax in the RecordSelectionFormula? (don't ask why i have to use this type of "AND...(criteria OR criteria OR...)", i just have...).Any ideas will be very very much appreciated. Help please! Thanks a lot :-(
"AND ({ACTIVECUSTTRADEBUY.COUNT} <> 0 OR {ACTIVECUSTTRADEBUY.VALUE} <> 0 OR {ACTIVECUSTORDBUY.COUNT} <> 0 OR ACTIVECUSTORDBUY.VALUE} <> 0)", I get through my application, a Crystal Report Database Error:"ORA-00907 right parenthesis missing".
When I debug my VB code and transfer the RecordSelectionFormula string in Crystal, it works fine! Moreover, the SQLQuery for this string, as generated in Crystal also works fine! (i run it directly on Oracle through SQL plus too, no prob!) I think i'm driving insane, so here comes the question: is there any know problem concerning some specific "sql" syntax in the RecordSelectionFormula? (don't ask why i have to use this type of "AND...(criteria OR criteria OR...)", i just have...).Any ideas will be very very much appreciated. Help please! Thanks a lot :-(