Hello All,
I'm trying to establish a record selection formula to use against an Oracle 8.0 database using Crystal Reports 8.5
I've tried to read up on it and use some ideas from fellow posters, but I can't seem to get the record selection to work here's what I have in my Record selection formula.
(
{WORKORDER.WOPM1} = {?Plant}
)
and
(
If {?Worktype} <> "NONE"then
{WORKORDER.WORKTYPE} = {?Worktype}
else If {?Worktype} = "NONE"then
true
)
and
(
If {?PHONE} <> "NONE"then
{WORKORDER.PHONE} = {?PHONE}
else If {?PHONE} = "NONE"then
true
)
and
(
If {?STATUS} <> "NONE"then
{WORKORDER.STATUS} = {?STATUS}
else If {?Status} = "NONE"then
true
)
I'm trying to use a parameter field to aid in the users selection. I want to use "NONE" as a keyword to act as a skip the parameter function. In the Database there doesnot exist a "NONE" selection.
When I check the Show SQL statement, I don't see anything relevant to the Record Selection.
Show SQL
SELECT
WORKORDER."WONUM", WORKORDER."STATUS", WORKORDER."WORKTYPE", WORKORDER."DESCRIPTION", WORKORDER."WOPRIORITY", WORKORDER."PHONE", WORKORDER."WOPM1",
ASSIGNMENT."LABORHRS", ASSIGNMENT."LABORCODE"
FROM
"GAFMAX"."WORKORDER" WORKORDER, "GAFMAX"."ASSIGNMENT" ASSIGNMENT
Any ideas on what I might be doing wrong?
Thanks,
d.
I'm trying to establish a record selection formula to use against an Oracle 8.0 database using Crystal Reports 8.5
I've tried to read up on it and use some ideas from fellow posters, but I can't seem to get the record selection to work here's what I have in my Record selection formula.
(
{WORKORDER.WOPM1} = {?Plant}
)
and
(
If {?Worktype} <> "NONE"then
{WORKORDER.WORKTYPE} = {?Worktype}
else If {?Worktype} = "NONE"then
true
)
and
(
If {?PHONE} <> "NONE"then
{WORKORDER.PHONE} = {?PHONE}
else If {?PHONE} = "NONE"then
true
)
and
(
If {?STATUS} <> "NONE"then
{WORKORDER.STATUS} = {?STATUS}
else If {?Status} = "NONE"then
true
)
I'm trying to use a parameter field to aid in the users selection. I want to use "NONE" as a keyword to act as a skip the parameter function. In the Database there doesnot exist a "NONE" selection.
When I check the Show SQL statement, I don't see anything relevant to the Record Selection.
Show SQL
SELECT
WORKORDER."WONUM", WORKORDER."STATUS", WORKORDER."WORKTYPE", WORKORDER."DESCRIPTION", WORKORDER."WOPRIORITY", WORKORDER."PHONE", WORKORDER."WOPM1",
ASSIGNMENT."LABORHRS", ASSIGNMENT."LABORCODE"
FROM
"GAFMAX"."WORKORDER" WORKORDER, "GAFMAX"."ASSIGNMENT" ASSIGNMENT
Any ideas on what I might be doing wrong?
Thanks,
d.