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.

Trouble with Find Criteria

Featured Replies

I have a script that finds "late pays" in a club database. In the “perform find” script step, the find criteria are; find “2007” in the “history” table/ “year” field AND omit “2008” in the same field. That works fine. I wind up with members that were active in 2007 but not in 2008.

What I’d like to do is replace those specifically entered years with a “get” function. (Year(Get ( CurrentDate )))-1 and (Year(Get ( CurrentDate )))

How do I enter a calculation or get function in the find criteria dialog box to automatically find the prior year and omit the current year?

Dudley

Hi Dudley,

Could you save first your "get" function or calculation on a $Variable. Then, do the "Perform Find" on that $Variable result?

See if this helps:

http://www.fmforums.com/forum/showpost.php?post/280414/

  • Author

Yes but . .

There's no provision for multiple find criteria. I tried that "set field" routine in conjunction with another "set field" "constrain found set" request but couldn't get "constrain" to work as expected.

Dudley

I don't see why you would need to constrain a found set in the context of a single find operation. Try something like this:

Enter Find Mode [ ]

Set Field [ History::Year ; Year ( Get (CurrentDate) - 1 ) ]

New Request

Set Field [ History::Year ; Year ( Get (CurrentDate) ) ]

Omit Record

Perform Find [ ]

  • Author

That's perfect. Thanks!! That's exactly what I was trying to accomplish. I was using the wrong script steps and/or in the wrong sequence.

Thanks again, Dudley

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.