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

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

Recommended Posts

  • Newbies
Posted

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.

Posted

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.

  • Newbies
Posted

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.

Posted (edited)

">=" & [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!
Posted

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

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