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

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

Recommended Posts

Posted

I have create a small database in 6, the client is hesitant to upgrade. I am using a table to organize their records. They have a field called final date in which the due date of thier projects is due. I want to find out all pending projects due. So I create a calculation final date > today's date = pending (1 or 0). In FM7 i can sort or do a find with this calculation. But the choises are not available in 6. Anyone know how to do this?

Posted

You should be able to sort and find on a boolean calc. You need to make sure that it is unstored, however, if you want it to update.

It would probably be better to forget the calc, though, and merely do a find on the due date for pending records. You can create a script to go to a layout containing the due date, Enter Find Mode, Insert Calculated Result [due date, ">=" & DateToText(Status(CurrentDate))], Perform Find. If you need a more limited date range, use DateToText(Status(CurrentDate)) & "..." & DateToText(Status(CurrentDate) + 30), for example, to find all projects due within the next month. No unstored calc field is necessary, and the finds will be faster since the due date can be indexed.

Posted

Hi JT,

Welcome Back, I've missed your corrections (errrrr, additions) to my posts.

Lee

yay.gifyay.gifyay.gifBirthdayPartyGuy.gifboing.gifBeer-Chug.gif

Posted

Thank you, Lee, as have I. wink.gif

Seraph, you can either perform a manual find and then add a Perform Find step or Enter Find Mode step (if you want to add more criteria) to a script, with the Restore option enabled or you can script an Enter Find Mode (with Restore disabled) and use Set Field, Insert Calculated Result, etc. to set your criteria, then Perform Find (also with Restore disabled).

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