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.

View Last Six Months Records Script Step

Featured Replies

I have a database with a date field called "Received".  By default, my users need only see the last six months of records, only occasionally needing to see beyond that.

 

I can't figure out how to script this find.  I intend to use it in my startup script -- unless there's a better way.  I've Googled it and nothing seems to work as I was hoping.  I am using FileMaker Pro 11 Advanced.

 

Any help would be appreciated.  Thanks!

 

Kevin

I have a database with a date field called "Received".  By default, my users need only see the last six months of records, only occasionally needing to see beyond that.

 

I can't figure out how to script this find. 

 

Try:

 

Go to Layout [ YourTable ]

Enter Find Mode []

Set Field [ YourTable::Received ; ">" & Get ( CurrentDate ) - 180 ]

Perform Find []

 

The 180 days is an approximation, of course. You can calculate the date more accurately by =

 

Let (

today = Get ( CurrentDate )

;

Date ( Month ( today ) - 6 ; Day ( today ) ; Year ( today ) )

)

  • Author

Thank you, comment, it works like a charm.  It didn't need to be exactly six months, so 180 days works fine.

 

Kevin

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.