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

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

Recommended Posts

Posted

I'm starting to build a script that performs a find on a group of records and produces only those records with dates within this week, or next week.

I wonder if anyone might have a suggestion, before I re-invent the wheel - I'd be very glad of any guidance at all.

Many thanks,

CF

Posted

Allow User Abort [Off]

Set Error Capture [On]

Enter Find Mode [ ]

Set Field [datefield; Let([ D = Get(CurrentDate); W = DayOfWeek(D)]; D - W + 1 & "..." & D + 14 - W )]

Perform Find [ ]

If [not Get(FoundCount)]

Show Custom Dialog ["No records could be found."]

Show All Records

End If

This will find all records from Sunday of the current week to Saturday of the following one.

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