Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4986 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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 []

Posted

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.

Posted

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.

This topic is 4986 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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