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.

Find Records within a Number Range

Featured Replies

Hi, I'm trying to find records with a number field that are greater than or less than 2 numbers, i.e. if I'm looking for the records greater than 115 and less than 120.

$myFind->addFindCriterion('ssvm', '>115');

$myFind->addFindCriterion('ssvm', '<120');
 

do I need

$myFind->setLogicalOperator(FILEMAKER_FIND_AND);   or am I way off base?

 

Thanks for your advice!

addFindCriterion('ssvm', '115...120');

  • Author

thanks Webko, that's terrific.  you're a champ!

How would that work using variables?

addFindCriterion('ssvm', '$Num1...$Num2');

Out of habit, I create the variable outside the actual request and then use it

$startNum = "115";

$endNum = "120";

$range = $startNum."...".$endNum;

addFindCriterion('ssvm', $range);

  • Author

thanks Webko, that's tight coding!

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.