formula for field list with not-equals values

5 pts.
Tags:
formula
not-equals
I can have a list of values that a field can equal, for example {field} = ["value1", "value2", "value3">. How can I have an equivalent formula for not-equals. My long way is ({field} <> "value1" and {field} <> "value2") Is there a better way?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi Sean56,

There is a better/easier way:

OPNQRYF FILE((FILE)) QRYSLT(‘*not (field *eq %values(“value1″ “value2″ “value3″))’)

The *not can also be used with %range.

Carolyn

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BrentSheets
    Moderator Note: HI Sean56 and welcome to IT Knowledge Exchange. In future questions, please mention the language you're using so other members will know. You should also include the language as a Tag, so that your questions is categorized under the correct topic. You can click the "Add to Discussion" button to add a comment below this one to provide more details. Thanks.
    6,925 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following