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

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

Recommended Posts

Posted
I'm using the FileMaker Training Series for FM11 advanced.
In Module 6 - Scripts, Lesson 6.4 "Using Scripts to Find Data", example 6.4.1
 
How can I set the criterion to the find request for the date field in the "Perform Find" script ??
 
The exercise says:
"Select the Date field on the left, and enter “1/1/2010...6/30/2010” as the criterion"
 
but when I click the Add button, there is a message:
"The value of this field must be a valid date in the range of years 1 to 4000 and should look like 12/25/2003"
 
What can I do ?
Posted

Two reasons I can think of:

 

1) You put the date string in quotes – don't (they should have made that clear in the text!); also make sure to use periods, not the ellipsis special character.

 

2) This training manual was written using American conventions, so if your locale (System Settings / Preferences) uses the format DD/MM/YYYY (like the UK), the end date from the example is not valid. Try 1/1/2010..30/6/2010 (btw, two periods are sufficient as range operator). If you're continental European (hi there!), try DD.MM.YYYY, this should work, too.

  • Like 1
Posted

Here is an example of a find script

 

Go to layout                //Note: Layout out with your date field

Enter Find Mode

1/1/1013...6/30/2013   //Note: Enter the range in your date field

Perform Find                //Note: Be careful, there are two Perform Finds, you want the one that looks like this.

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