Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Find records on date criteria from a script

Featured Replies

Hi,

Through a script, I want to find all the records in a file where creation_date is >= 01/01/<>. The creation_date field is a date field. I tried to execute a script with the following script steps:

enter find mode[]

set field["creation date, ">=" & texttodate("01/01" & year(status(currentdate)")

If I use the above method then FileMaker interprets the the result as a text data because I am concatenating a string to the date.

I tried using Insert Calculated Result[] but after concatenation with the text field, it shows the total number of days from 01/01/0001 (for eg: it shows '>= 01/01/2005' as '>= >=731947' and FileMaker gives an error to enter data in mm/dd/yyyy format.

Any help would be greatly appreciated.

Thanks in advance,

--Sanjai

Try:

">=" & DateToText( Date( 1, 1, Year( Status(CurrentDate))))

  • Author

Thanks. I don't know why I had forgotten to convert the datetotext.

Thanks again,

--Sanjai

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.