Skip 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.

Please help! Date Scripts

Featured Replies

  • Newbies

Hi,

I'm using Filemaker pro 11 to create a database that holds details of clients monthly payments on 12 month contracts. Clients have the option of paying uprfont or paying monthly via direct debit. On their file i want there to be a field called 'Paid', with two possible answers "Yes" or "No." I want the 'Paid' field on the first of every month to revert back to "No" across the board except for those clients that have paid upfront. This would indicate that they need to be debited for this month. To indicate that a client has paid upfront I have another field called 'Payment Upfront' with two possible answers "Yes" and "No" again. Can someone please help me to construct the if statement or script that will accomplish this?

Essentially I want a script or calculation that says "If day of month = 1st, Paid = No, unless payment upfront = Yes"

Any help would be much appreciated!

Cheers, Zane

I want the 'Paid' field on the first of every month to revert back to "No" across the board...

Trust me, you don't want this.

Instead, create a related table of Payments. Make a payment record for each payment the person has to make: if the person pays up front then create 1 payment record, if they have 12 payments then make 12.

Each payment record needs an amount field, a date due field, and a date paid field.

Payments can have the following status: paid, overdue, or scheduled. (Scheduled are payments whose due date is in the future.) Payments are marked as paid when the Date paid has a value in it.

Create an unstored calculation field to display the status:


Case( 



not isempty( Date Paid ) ; "Paid" ; 



Get( currentdate ) < Date Due ; "Scheduled" ; 



"Overdue" 



)

Using multiple related payment records allows the history of the account to be kept.

It is possible to make this much more complex but this is about the minimum.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.