HI,
Well U must be adding the CrystalReport component to your form.
If u want to pass a SQL Query to Crystal report, you can use the Property "SqlQuery".
CrystalReport1.SqlQuery = "Select ..........From..... Where ..."
Another way if u want to use "SelectionFormula", u must be very clear about the Syntax. Please refer MSDN for syntax. For ur idea , you must enclose the formula withing curly braces ....
SystalReport1.SelectionFormula = {"......... ..=....."}
Somting like that.
Hope this helps.
B. Anant
|