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

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

Recommended Posts

Posted

I need a script that will automatically find all records that were created yesterday. I have a record that is creation date. I may or may not have records for today. I can't seem to find the right find request.

Larry

Posted

Enter Find Mode[ ]

Set Field["creationdate", "Status(CurrentDate) - 1"]

Perform Find[ ]

Posted

Thanks that does it, but, I am trying to use If(Hour("TextToTime"(CurrentTime))<4 to find out if it's after midnight (before 4 AM) or not. If after Midnight I need Today and Yesterday and if before midnight just today.

Larry

Posted

Enter Find Mode [ ]

If [Hour( Status(CurrentTime) ) < 4]

Go to Layout {one with creationdate on it}

Insert Calculated Result [select, "creationdate", "DateToText( Status(CurrentDate) - 1 ) & "..." & DateToText( Status(CurrentDate) )"]

Else

Set Field ["creationdate", "Status(CurrentDate)"]

Perform Find [ ]

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