SELECT Defendants.defendantsID FROM CaseRelations, InCaseStatus, Defendants ; INTO CURSOR cChargesFiled ; WHERE InCaseStatus.StatusCode = 11 AND ; INcaseStatus.IndefendantsID = CaseRelations.IndefendantsID AND ; Defendants.DefendantsID = CaseRelations.DefendantsID AND ; InCaseStatus.StatusDate <= dRptEnd AND ; ( EMPTY( Defendants.Closed ) OR BETWEEN( Defendants.Closed, dRptStart, dRptEnd ) )I can even put a breakpoint in the code just before this statement is to be executed, go to the command window and execute it, and it works...but in the code it fails w/a Syntax error.