>Is it possible to use parentheses in the local view designer? I have a WHERE clause that reads:
>
>WHERE Empmaster.deptcd == ?cDept AND Empmaster.termdate =CTOD("") OR Empmaster.termdate > DATE()
>
>I need it to read:
>
>WHERE Empmaster.deptcd == ?cDept AND (Empmaster.termdate =CTOD("") OR Empmaster.termdate > DATE())
The view designer doesn't support parenthesis. You can either change the WHERE clause or use CREATE SQL VIEW.
WHERE Empmaster.deptcd == ?cDept ;
AND Empmaster.termdate = CTOD("") ;
OR Empmaster.deptcd == ?cDept ;
AND Empmaster.termdate > DATE()
You could also use {} to indicate an empty date:
WHERE Empmaster.deptcd == ?cDept ;
AND Empmaster.termdate = {} ;
OR Empmaster.deptcd == ?cDept ;
AND Empmaster.termdate > DATE()
Brien R. Givens
Brampwood Systems