Hello all. I have the following Selection Formula for a report I'm designing in Crystal 8.0, against a SQLServer 7 database:
{valuelist.listname} = "WOSTATUS" and
not ({workorder.status} like ["CAN", "CLOSE", "COMP"]) and
{workorder.supervisor} like {?Supervisor} and
{workorder.glaccount} like {?FMCC} and
{workorder.leadcraft} like {?Craft} and
{wplabor.laborcode} like {?Labor}
I would like the user to be able to pass wildcards into the parameter, and when they enter '*' for each parameter, the report should return all records. However, it only returns those where the field is not null. I have done this before on an Oracle database, and I seem to recall that '{fieldname} like * ' returned everything including NULL records.
I have tried using IF statements, but I guess I don't have the syntax right, because nothing seems to work for me. I would really appreciate some insight on this because it is driving me absolutely crazy! Thanks in advance.
{valuelist.listname} = "WOSTATUS" and
not ({workorder.status} like ["CAN", "CLOSE", "COMP"]) and
{workorder.supervisor} like {?Supervisor} and
{workorder.glaccount} like {?FMCC} and
{workorder.leadcraft} like {?Craft} and
{wplabor.laborcode} like {?Labor}
I would like the user to be able to pass wildcards into the parameter, and when they enter '*' for each parameter, the report should return all records. However, it only returns those where the field is not null. I have done this before on an Oracle database, and I seem to recall that '{fieldname} like * ' returned everything including NULL records.
I have tried using IF statements, but I guess I don't have the syntax right, because nothing seems to work for me. I would really appreciate some insight on this because it is driving me absolutely crazy! Thanks in advance.