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

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

Recommended Posts

Posted

Hi

I have a "recDate" date field. If I know a specific date how would I go about finding the records that are in the week containing THAT date in a script?

So if I know 6-24-09, I would like to find 6-22-09...6-26-09 (mon-fri).

Thanks in advance. You guys are great!

PS: I am at work on XP and FM 8.5 Advanced

Posted

Thanks LaRetta

In setting up the script I ran into a snag with the SetField calc. I get an "operator expected here" right after the 1st instance of my date field.

Table = Processing

Date Field = B_Date Received

This is what I have...

Processing::_Date Received[color:red](operator expected here); Let ( date = Processing::_Date Received - DayOfWeek (Processing::_Date Received ) + 2 ; date & ".." & date +4 )

Did I miss (mess) something?

(Also for clarity for future readers I added a "." to the "..")

Posted

No Problem. I get the date from one of the records so there would always be at least one. But I do see what you mean. Thanks for the thorough answer.

BTW, on efficiency:

An efficiency expert, concluded his lecture with a note of caution. "You need to be careful about trying these techniques at home. "

"Why?" asked somebody from the audience.

"I watched my wife`s routine at breakfast for years," he explained. "She made lots of trips between the refrigerator, stove, table and cabinets, often carrying a single item at a time.

One day I told her, `Why don`t you try carrying several things at once?`"

"Did it save time?" the guy in the audience asked.

"Actually, yes," he replied, "It used to take her 20 minutes to make breakfast. Now I do it in seven."

Have a GREAT weekend!

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