Jump to content

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

Recommended Posts

Posted

ok... i have a calculation field with this definition.

Case(

not IsEmpty(PJCompleteDate), "Complete",

PJStatus = "Stand By", "Stand By",

PJRequiredDate < Status(CurrentDate) and IsEmpty( PJCompleteDate ), "Overdue",

"Pending")

now this has always worked perfectly, displaying the correct info. until today.. today all work order that should come up as "Overdue" just come up as "Pending".

Now if you do something like change the PJRequiredDate, PJStatus, or the PJCompleteDate, then the field will update back to the correct thing. So I can fix it, but I'm just wondering why it would suddenly just stop working like that.

Thanks for the help,

Rick

Posted

Is the field stored or unstored? Is there a space (or some other character) in PJCompleteDate? Is PJRequiredDate a date field, and is the data in it regular?

Jerry

Posted

the storage options are "indexed" and the "do not store calculation results" is unchecked. PJRequiredDate is a date field, and no spaces in the PJCompleteDate field.. and all the data is regular dates... this suddenly just started happening on all the records that are supposed to show "overdue". it has been working fine up until today.

Posted

The storage options are "indexed" and the "do not store calculation results" is unchecked.

There you go, flip those settings. You want the field unstored or else Status(CurrentDate) will not update each day.

Posted

Have you recently added or modified a relationship that uses this field as the right side key field?

Posted

I would be tempted to say that someone did a find on the field and forced it to index. But that wouldn't make sense because a Status calc must be unstored, not just non-indexed. Does anyone else have access to Field Definitions?

Posted

the only other person with access is my boss, and he wouldn't have tried to make any changes.

as soon as I get a chance to shut down the database I'll make the changes to the field that were suggested, and that should fix the problem. It just bugs me that it worked for all that time, and then suddenly stopped working.

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