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

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

Recommended Posts

Posted (edited)

I'm writing a script which contains the step Perform Find[]. I want to perform the find on a field called Year, which contains, obviously, year values. How can I get the current year value into this Perform Find? I could do it if I had access to a Calculation field with Year(Get(CurrentDate)), but it appears I don't.

Edited by Guest
Posted

Specifying that calculation to find a record does not work. I know that is the correct calculation to get the current year, but how do I put in a Find request for the current year? If I ented any sort of calculation data into the find request, FileMaker does a literal search on "Set Field..." in the Year field.

Posted

Wait, I see now what T-Square meant. I was locking myself into constraining the found set, but I didn't realize I could do Enter Find Mode, Set Field instead. I learned something! :)

Posted

Elford--

Sorry I was so oblique. I should have given you more context. And yes, I meant put that step into your script, thus:

Enter Find Mode[]

Set Field[Year, Year(Get(CurrentDate))]

Perform Find[]

Cheers!

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