Charles Fowler Posted October 13, 2004 Posted October 13, 2004 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
-Queue- Posted October 14, 2004 Posted October 14, 2004 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now