AnsweredAssumed Answered

Get(CurrentDate) finding the day before and current date

Question asked by aklobby on Nov 6, 2014
Latest reply on Nov 7, 2014 by aklobby

Title

Get(CurrentDate) finding the day before and current date

Post

I am having an odd issue with the following script finding records for the current day as well as the day before. I want to only show records that correspond with the current date. Has anyone else had this issue? Can anyone spot an anomaly in this script that I cannot see? Any help greatly appreciated I have been staring at this script and cannot see what I am doing wrong.

Allison

Set Error Capture [On]

Go to Layout ["Print List Layout"]

Enter Find Mode

Set Field [Scheduled; Get(CurrentDate)]

Perform Find

If [ Get(FoundCount) =0

Show custom dialogue ["no records found, Click OK to return to the report creator"]

Go to Layout ["Reports"]

Halt Script

End If

Sort Records [Restore; No Dialogue]

Outcomes