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.

Featured Replies

  • Newbies

HI
I have a solution I want to write a script or calculation  that counts one day a week as vacation for 1 year,  from a specific day forward.

example .. every sunday until 2024

 

Could you be more specific with your requirements? Counting weeks is not the same thing as counting Sundays. What are the inputs to this calculation and what are the exact rules - esp. with regards to partial weeks?

 

Edited by comment

  • Author
  • Newbies

Thanks for your answer , here is  a solution you can work with.

This solution is similar to my original.
If you check record 15, Erik has permission from. 2022-11-13 until 2022-11-27
if you add a new record with date/time it will be green until the end date 2022-11-27
I want a secript for permission where a person can have every Monday off, e.g. until the year 2023 and the field perm shows green

 

fpattandance.fmp12

Sorry, I have no idea what you mean.

Edited by comment

Here you can find a calculation that allows you to count how many Mondays (or any other day of week) are in a given range:
https://fmforums.com/topic/42435-of-fridays-in-a-given-time-period/?do=findComment&comment=197966&_rid=72594

Here is a custom function that returns a list of those days:
https://www.briandunning.com/cf/452

If neither of these answer your question, you will have to be much more specific.

 

 

 

 

Edited by comment

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.