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.

Relation to an interval of numbers?

Featured Replies

I have two databases, where I am trying to relate records by a number. The problem is, that in the first database I do not have the exact number, but an interval (given by values in two fields).

Example: Database one, record A: Interval 1-24 (field A=1, field B=24).

Database two, record B: Value=17

- how do I relate these records?

In plain words, I need database two to look up values if it itself has a value in an interval specified in database one.

The problem is my intervals can be as big as 1700, else I could populate a field with the values in between the interval.

This is fairly straight forward in FM7.

Create the relationship by dragging from one table to another using the field A and value fields (in database one and two). After the relationship has been created so that records are linked if these two fields are equal, double click the equal sign that connects the two tables. Edit the existing relationship so that instead of equals it uses the <= symbol (so that field A <= Value). Use the popup menu that appears between the field lists.

Then in the field list for database one, choose field B, select >= from the popup menu, and click Add. Now the relationship will be based on two criteria: field A <= Value and field B >= Value.

Doing a similar thing in FM6 or below is much more complex. Let me know if you need instructions.

Chuck

  • Author

Thanks Chuck! I see this would be an argument for upgrading to FMP 7...

But for the moment I have to stick with vers. 6 so any ideas are greatly appreciated.

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.