Skip 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.

Date Range

Featured Replies

  • Newbies

I want to create a script which simply does a search and displays records which are set to today and beyond, i have a "deadlinedate" date field set.

I have tried a couple of ways but can't get any success, any suggestions are appreciated.

Since you are on FM6...

IIRC, it should be like the following:

Enter Find Mode

Insert Calculated Result [ YourField, ">=" & (Status(CurrentDate)]

Perform Find

Or if you want specific ranges:

Enter Find Mode

Insert Calculated Result [ YourField, DateToText(DateStart) & "..." & DateToText(DateEnd)]

Perform Find

P.S. Go to the layout with the field on there first.

Also, if you are not on FM6, then please update your profile first... second you can use Set Field instead of Insert Calculated Result.

  • Author
  • Newbies

Hi, I try to use Insert Calulated result:

DateReqd, ">=" & (Status(CurrentDate)

but it says "There are too many separators in this function.

If i take out the comma, i get another error saying the field cannot be found and it highlights the first double quote as being part of the field.

">=" & [color:red](Status(CurrentDate)

Remove the red parenth as indicated so it becomes ">=" & Status(CurrentDate)

Yikes! and remove this DateReqd, entirely!! This is where you specify the field to set (the target field) and that field does NOT also go into the calculation dialog.

Edited by Guest
Added yikes!

I think you need to convert the date to text in 6

Enter Find Mode

Insert Calculated Result [ DateReqd, "≥" & DateToText( Status(CurrentDate)) ]

[ Select entire contents ]

Perform Find

[ Replace Found Set ]

HTH

Lee

Yes, thanks for the catch, Lee. Vs. 6 seems like centuries ago. :wink2:

  • Author
  • Newbies

great thanks!!

the last one did the trick.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.