LarryLogic Posted October 9, 2003 Posted October 9, 2003 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
-Queue- Posted October 9, 2003 Posted October 9, 2003 Enter Find Mode[ ] Set Field["creationdate", "Status(CurrentDate) - 1"] Perform Find[ ]
LarryLogic Posted October 9, 2003 Author Posted October 9, 2003 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
-Queue- Posted October 9, 2003 Posted October 9, 2003 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 [ ]
LarryLogic Posted October 9, 2003 Author Posted October 9, 2003 The Hour, Status is what I needed. I should have asked 8 hours ago. Thank you Larry
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now