elford Posted July 18, 2006 Posted July 18, 2006 (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 July 18, 2006 by Guest
elford Posted July 20, 2006 Author Posted July 20, 2006 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.
elford Posted July 20, 2006 Author Posted July 20, 2006 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! :)
T-Square Posted July 20, 2006 Posted July 20, 2006 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now