Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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

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

  • Author

Thanks Dj for your hint, it is as simple as that!!!!

I guess what Ken is proposing is an OR search!

cool.gif Gracias

Yorch

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.

I cant do it either. Although using the "=" for exact match as dj said is a good idea.

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.