I am using Crystal 10.
I have the following select statement (written in the Record Selection Formula Editor). The part I want to focus on is in red:
The SQL statement looks like this (I am only showing the last part with the DtTm fields because it is a complex SQL and would be way more information than needed). I added line breaks to make it easier to read:
My parentheses have been removed and so the select stmt doesn't work correctly. How do I force Crystal to keep the parameters the way I set them?
TIA!
~RLG
I have the following select statement (written in the Record Selection Formula Editor). The part I want to focus on is in red:
Code:
{Cpt.Template} = 0 and
((isnull({Schedule.location}) or {Schedule.location} = 0 ) or not ({Schedule.location} in [1975,8224])) and
((isnull({Ident.Ident_ID}) or {Ident.Ident_ID}=0 ) or {IDENT.Version}=0) and
{Schedule.app_dttm}={?Appointment Date} and
{Schedule.Version} = 0 and
not ({Schedule.Activity} in ["SWMTG", "99917", "99919", "99920", "99921"]) and
[red](({Schedule.Create_DtTm} >= {?Create Date}) or
({Schedule.Edit_DtTm} >= {?Create Date} and
{Schedule.Create_DtTm} < {Schedule.Edit_DtTm})) [/red]and
{Schedule.Inst_ID} = {?Other MSTI Sites}
The SQL statement looks like this (I am only showing the last part with the DtTm fields because it is a complex SQL and would be way more information than needed). I added line breaks to make it easier to read:
Code:
("Schedule"."Create_DtTm">={ts '2012-04-27 00:00:00'} OR
"Schedule"."Edit_DtTm">={ts '2012-04-27 00:00:00'} AND
"Schedule"."Create_DtTm"<"Schedule"."Edit_DtTm") AND
"Schedule"."Inst_ID"=4
My parentheses have been removed and so the select stmt doesn't work correctly. How do I force Crystal to keep the parameters the way I set them?
TIA!
~RLG