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.

Script to find records in current month, from last year

Featured Replies

I am having some problems developing a button script that will find all records that are in the current month, from one year past. The field that it will search is a date field.

I am sure this is an easy fix for some, but I cannot seem to get my script to work.

Any help is greatly appreciated, thank you!

Try:

Enter Find Mode []

Set Field [ Yourtable::Datefield ; [ Let ( [ t = Get (CurrentDate) ; m = Month ( t ) ; y = Year ( t ) - 1 ] ; Date ( m ; 1 ; y ) & ".." & Date ( m + 1 ; 0 ; y ) ) ]

Perform Find []

  • Author

I feel like I understand the Button Setup wizard fairly well, but it asks me to change a lot of characters when I try to copy that script in. Is there another way to copy and paste a script in that I am missing?

Thanks for your help, I am slowly getting there and that process makes much more sense than my initial idea.

It would be best to create a script first, then assign a Perform Script[] action to the button.

You cannot paste script steps from here to Filemaker, but you can paste the calculation formula (in blue) into the 'Specify calculated result' window of the Set Field[] step.

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.