Jump to content

Need help on how to perform multiple AND search !!!


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

Recommended Posts

Hi !!

I just can't figure out how to make a boolean "AND" search upon the same field.

Lets have a text-field called HOBBIES, now... how can I define the

search condition in order to search for "reading" anywhere in the field and "windsurfing" anywhere in the field and "chess" anywhere in the field, all this at the same time, on this field??

Is this possible in FMP 5.5 ??

Thanks for any help on this

Link to comment
Share on other sites

Hello:

Manually, enter Find Mode, type reading in the field, go to Requests/Add New Request, type windsurfing, Requests/Add New Request, type chess. Click Find or hit Enter.

Semi-automatically, you can make a script like this:

Enter Find Mode [ ]

Set Field[HOBBIES, "reading"]

New Record/Request

Set Field[HOBBIES, "windsurfing"]

New Record/Request

Set Field[HOBBIES, "chess"]

Perform Find [ ]

...amongst other things

Ken

Link to comment
Share on other sites

No, you should use this form:

Set error capture [on]

Enter Find Mode

Set Field [hobbies,"=chess =windsurfing =reading"]

//I've put = for exact match, you can also mix exact with contains for ex =chess surf =reading

Perform find

Dj tongue.gif

Link to comment
Share on other sites

dj, is the code you posted new to 5.5?

When I tried your suggestion in my sample database in FMPro 5.0.v3, the script entered all three terms, along with the equal signs (=chess =windsurfing =reading) into the field and no records were found. I had three records, each containing one of those words.

Ken's example, on the otherhand, worked fine in FMPro 5.0.

Link to comment
Share on other sites

Well than you got the right result since the goal was to find those items all togheter in the same field of the same record and not in the same field of different records in which case you should simply use as many Find Request as you need.

Dj laugh.gif

Link to comment
Share on other sites

This topic is 7929 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
×
×
  • Create New...

Important Information

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