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 record for every Friday in a month...

Featured Replies

ok, so i'm stuck again and figured the experts here would find this to be easy, but it is just not coming to me.  so, i'm building a finance tracking database to track my bills for the month and basically, i'll have two tables.  one will be the payees table (which will have the payee name, amount due, date due, etc), and one table will be the list view of all the 'transactions' for the month.  essentially, at the beginning of the month, i want to click a button that will run a script to fill in all upcoming bills.  which works fine...until i got to one that needs to be paid every friday instead of once a month.  so, how can i calculate it to know to add a new record with the date of every friday in the month (4, sometimes 5 instances depending on the month).  is there an easy way to calculate that?

 

 

p.s. - if i posted this in the wrong forum, i'm sorry.  I wasn't sure where it should go.

how can i calculate it to know to add a new record with the date of every friday in the month (4, sometimes 5 instances depending on the month).  is there an easy way to calculate that?

You only need to calculate the first Friday of the month, which is =

Let ( [
first = Get ( CurrentDate )  - Day ( Get ( CurrentDate ) ) + 1 
] ;
first + Mod ( 6 - DayofWeek ( first ) ; 7 )
)

Then loop and add 7 to the date until you roll over to the next month.

  • Author

comment, you seem to be the person on this forum that always saves my day.  lol.  THANK YOU!

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.