Quote:
|
Originally Posted by econ57
But, I am stuck on how to indicate a range of dates in a set of Find criteria within a script. Seems simple, but I can't seem to make it happen.
I have about 500 records in the current database that need to be reviewed to ensure they aren't scheduled to start on a weekend or holiday.
|
If the problem is to find records that might have an invalid Start Date, define a calc that compares the calculated Start Date (calculated based on one of those algorithms) with your Start Date, and flags them. Then Find for records that have this flag indicated.
But it would be simpler to just replace your Start Date with a correctly calculated Start Date, using one of those algorithms in a Replace Field Contents (be sure to back up your file before attempting a Replace, as there's no Undo) if it must be a regular Date field to be editable, or define it as a Calculation with Date result otherwise.
The general idea of those algorithms, is you provide them with an initial date, the number of days to offset, and a return-separated list of holidays, and it provides a resulting date. To fit them into a calc without FM Advanced, you use fields or variables in place of the listed parameters.