Link to home
Start Free TrialLog in
Avatar of Gordon Hughes
Gordon HughesFlag for United Kingdom of Great Britain and Northern Ireland

asked on

SQL Code error

Hi
Can anyone tell me what is wrong with this formula
{WOEQLIST.LOCATION} = {?Pm-?Factory} and
({WOEQLIST.UD3} = "Yes" or
({WO.WOTYPE} = 'WRF' and {WOEQLIST.UD3} is not 'Resolved')

It keeps syaing the ) is missing before the is not
Gordon
Avatar of cefamax
cefamax
Flag of Italy image

you are miss a (:
{WOEQLIST.LOCATION} = {?Pm-?Factory} and
({WOEQLIST.UD3} = "Yes") or
({WO.WOTYPE} = 'WRF' and {WOEQLIST.UD3} is not 'Resolved')
Avatar of Gordon Hughes

ASKER

Hi
Thanks for your speedy response
It still says missing ) before the is not
Gordon
Avatar of Mike McCracken
Mike McCracken

There is no IS in Crystal except for use with arrays

Try it this way

{WOEQLIST.LOCATION} = {?Pm-?Factory} and
({WOEQLIST.UD3} = "Yes" or
({WO.WOTYPE} = 'WRF' and {WOEQLIST.UD3} <> 'Resolved') )

What values are in WOEQLIST.UD3?

mlmcc
Hi mimcc

I recognised it should be <> but is still does not work
The WOEQLIST.UD3 could have a value or be blank, which I think contibutes to the issue
I have got around the issue by puuting a value in the field, but am concerned the users may forget
Gordon
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This mmic is good