In CR 8.5 you can paste in a SQL Steament in the ADO/ROD connection, however you can't apply parameters against it, in later version you use the Add Command object and then you can apply parameters against the SQL.
What are abc, xyz and lmn? If they are fields in a single record - 'table' in Crystal jargon - then put lmn = 01 in your record selection, Report > Selection Formulas > Record.
If they are distinct records / tables, then link them with 'equals' joins using Database Expert. That makes them a 'row' in Crystal terms, and 'rows' are only selected when they meet the criteria. This can mean excluding one sort of record because of details on a linked record - accounts for customers who are dead, for instance, you don't want to go offering them cut-price life insurance while their affairs are being wound up by their executors.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.