SQL Formula Error

I have created the following, but it says there is a ) missing, cannot see how to fix this

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

Gordon HughesDirectorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vivek ReddyCommented:
try like below

(({WOEQLIST.LOCATION} = {?Pm-?Factory}) and
(({WOEQLIST.UD3} = "Yes") or
({WO.WOTYPE} = 'WRF' and {WOEQLIST.UD3} is not 'Resolved')))
Gordon HughesDirectorAuthor Commented:

It still says the ) is missing

({WOEQLIST.LOCATION} = {?Pm-?Factory}) and
(({WOEQLIST.UD3} = "Yes") or
(({WO.WOTYPE} = 'WRF') and ({WOEQLIST.UD3} is not 'Resolved')))
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

Gordon HughesDirectorAuthor Commented:

Still says missing )
I am trying to use this as a record selection forula, if this makes any difference
Gordon HughesDirectorAuthor Commented:
Found there was a null field causing issues so have changed the formula and now I can get the correct data
Thanks for all input

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gordon HughesDirectorAuthor Commented:
Done a work around
FWIW, the problem with your original formula was "is not".  Those are both recognized keywords, individually, but "is not" is not a valid test.  That should have been {WOEQLIST.UD3} <> 'Resolved'.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.