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.

creating a join for between variables value

Featured Replies

  • Newbies

Please help a moderate user. I can do basic joins with little problem- but having trouble with this twist. FM Adv 11 on Mac.

Need to join two tables (say A and B ).

Table A varaibles has a ID, Beginning Date, Ending Date (like 444, 07012011, 07302011)

Table B also has an ID, and a service date (like 444, 07152011).

I need to join records IF

ID = ID (not a problem)

AND

IF service date in B falls between beginning date and ending date in A.

It is this second one that gets me. I have only done = joins, never a "falls between" two variables join.

Any help?

A::ID = B::ID

A::ServiceDate < B::EndingDate

A::ServiceDate > B::StartingDate

Edit: you may want A::ServiceDate ≤ B::EndingDate and A::ServiceDate ≥ B::StartingDate

"Beginning Date, Ending Date (like 444, 07012011, 07302011)"

Hi mylesg,

As an aside to Doug's good advice, these are not date fields, right? 444 is date 3/20/0002 and 07302011 is an invalid date (unless it is set that way at the OS level and I've never seen anyone with regional settings as such and in which case 444 is again invalid). The relationship should still work if they are numbers but if they are text they relationship will not work. Can we get clarification on those dates?

First of all, are the dates real FileMaker date fields? Because you present them as numbers; in a format DDMMYYYY.

If they are actually number fields you will need to format them as YYYYMMDD to do comparisons.

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.