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.

Date Range with a Script?

Featured Replies

Let's say I have a database with fields "Start_Date", "End_Date" and "Duration".

I have another database of holidays with a field called "Holiday_Date"

Is it possible to find the number of holidays between the start and end dates WITHOUT using a script, but using only relationships and calculations.

I solved the problem with a script that sets a global field to all of the dates between start date and end date (separated by returns) and counts the number of records related in the holiday file. So if I can find a way to fill in that field without a script, that would also solve the problem.

Thanks,

Chuck

  • Author

Well, I solved this problem but the calculation is HUGE. Perhaps someone else would benefit from knowing it, or perhaps someone else will know of a better calculation.

Here's the calc so long as the date range is less than 15 days:

Start_Date & "

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.