Skip 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.

Doing multiple criteria in one field

Featured Replies

  • Newbies

I want to perform a search for multiple data in one field.

How do I do that? Any help?

Hi ggillis, welcome to FM Forums :wink2:

It would help to know whether this is a manual find or whether you want scripted solution. If you wish to search one field for two different 'OR' conditions, you would use New Record/Request to enter your second find criteria. Can you describe how this process will be used?

LaRetta

  • Author
  • Newbies

Thanks for the reply. My database is for a small neighborhood pool. I have a field with a drop down menu with "Active, Maintenance, Sold, and Bought Back" which is information about thier membership. I'm trying to do a find where two of these criteria is true. Example "Which members have a active and maintenance membership". How do I do a mulitple find in the one field? Thanks in advance for your help. It can be a find or script.

It is called an AND search. Place your field as checkbox on layout. Create new script called Find Memberships:

Set Error Capture [ On ]

Enter Find Mode [ Pause ] ... do not specify any Find Requests

Perform Find [ ]

If [ not Get ( FoundCount ) ]

Show Custom Dialog [ OK ; "No records found." ]

Show All Records

End If

If you wanted an OR Search, you can capture (and count) the Search values using GetValue(), storing in global variables. Then loop, pulling each value separately and creating a new search request for each value.

LaRetta :wink2:

  • 2 months later...
  • Newbies

Hi,

I have the same problem:

My clients can buy apparel and footwear, or only one of them.

My question is: how do i find clients who bought apparel (X) and footwear (S) --> they are stored in the same field

eg:

Smith X 110 pieces 2000 euro

Smith S 220 pieces 3000 euro

Jones X 100 pieces 1800 euro

Jack X 80 pieces 1600 euro

I'd like to find only Smith, since he bought both category's.

Thanks for helping me out.

Cheers,

Snake

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.