Jump to content

Find w/ omit driving me insane!


Guse
 Share

This topic is 5604 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Alright, I've been turning to here more lately than I'd like, but I've just been having brain melt-downs... must be the newborn-lack-of-sleep thing.

Alright, it's a simple thing, really. I have a script that wants to find for a record that contains a ValueA in a FieldA and omit the records that contain ANYTHING in FieldB.

The best way I can think to describe it is:

If FieldA == VariableA AND IsEmpty(FieldB)

Display records

Seems simple. What everything seems to be doing is evaluating the first part (FieldA == VariableA), displaying results then somehow displaying every record again (including what was filtered out already) and evaluating the second part, leaving in results that don't meet the first part.

Not sure what to do here. Can't imagine why this is so hard for me...

Link to comment
Share on other sites

The general syntax for building a Find is to put the criteria that you want found first, followed by the criteria that you want omitted (this order is important).

In your case, you might use a script to build the criteria, like this:

Enter Find Mode[]

Set Field [ FieldA ; $variableA ]

New Record/Request

Set Field [ FieldB ; "*" ]

Omit Record

Perform Find []

Link to comment
Share on other sites

This topic is 5604 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.