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

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

Recommended Posts

Posted

I would like to set up a script to find records for the current month only. For Example: If I am running the script in September I would like all of the found records to be from September Only. How would I set this variable up in a Standard "Perform Find" script step or is there another way to do it? Maybee I can incorporate a calculation into a find somehow. Note: I do have fields setup within the record that are timestamped. This is the field data I will use for the finds.

Thanks

Posted

FileMaker is pretty smart about finding dates. It's not quite as smart in letting you specify Find criteria in a single step. Instead you have to script it this way:

Enter Find Mode

  Set Field [theDate, Month(Get(CurrentDate)) & "/" & Year(Get(CurrentDate))]

Perform Find

See The Secret Life of Find Mode: Dates and Times for a full discussion of the topic.

Posted

You can further shorten this up like this.

Enter Find Mode []

Set Field [ YourDate, Month ( Get ( CurrentDate ) ) ]

Perform Find []

FileMaker will assume its the current year.

This topic is 5905 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.