Gregory_I Posted September 24, 2008 Posted September 24, 2008 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
Fitch Posted September 24, 2008 Posted September 24, 2008 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.
mr_vodka Posted September 25, 2008 Posted September 25, 2008 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.
comment Posted September 25, 2008 Posted September 25, 2008 FileMaker will assume its the current year. In a date field, yes - but not in a timestamp field.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now