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

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

Recommended Posts

Posted

I'm having a problem searching for all records with dates after a certain date. I enter FIND mode and then use Insert Calculated Result using the following:

">" & GetAsText(memberships::newsletter thank you date).

The text in the search field looks like this:

>2009/11/15

When the search starts, I get an error message:

The value of this field must be a valid date in the range of years 10 to 4000 and should look like "12/25/2003".

I use the exact same script step in another file on the same machine, and it works fine. In that case the search string looks like ">11/15/2009".

I've checked the file File/File Options/Text option, and tried both "Always use current system setting" and "Always use file's saved settings", but it makes no difference in either file.

How to I get Filemaker to insert the correct date format?

Posted

Yes, it is a date field (global) and it's in the same file. Oddly I used the same calculation in another script and table, but in the same file, and it works fine. I've played around with using different field formats in the layout, but it makes no difference.

Posted

How does this field get populated? And what do you have selected under File > File Options… > Text > Data Entry?

The field that is being searched is filled in by a script with this step:

Max(Get(CurrentDate);memberships::newsletter labels date+1;memberships::newsletter thank you date+1)

The field that is being used to define the search is set by an Insert Calculated Result using this:

">" & GetAsText(memberships::newsletter thank you date)

The file option "Data Entry" that I used was "Always use current system setting". I also tried "Always use file's saved settings", but it made no difference.

Posted

I gave up and decided to just use copy and paste to get the job done. When I did that, the correct date format was used.

I don't see any way to change the date format option in the file. I guess you can use its "saved settings", but I don't see a way to even view those. At any rate, I'm up and running again. In Filemaker there is always a way to make it happen.

Thanks for your time.

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