Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I want to highlight all overdue invoices in my database with conditional formating.

Currently the conditional formating created works but it works for all records. I want it to work for just records with the "P_Status = Complete/invoice"

 

I am thinking I need an if statement inside an if statement but cannot seem to get it to work.

any help appreciated.

Thanks in advance.

Posted

What exactly is your condition?

I don't think "P_Status = Complete/invoice" would work because you haven't said what table P_Status is from.

Posted

Sorry I should have included that.

Here is what I am currently trying to get to work:

If ( Projects::P_Status = "COMPLETE/INVOICED";
If (Get ( CurrentDate ) ≥ Invoices::Date Created+Int ( 30 ); "");"")

 

When I do this all is clear. If I get rid of the first if then my conditional formating works but it works for all records not just the COMPLETE/INVOICED.

 

Hope this makes sense

Posted

I'm a bit of a novice, but I thought that separate conditions worked as ORs.

I reckon you'll need to do something like

Projects: :tongue:_Status = "COMPLETE/INVOICED" AND ( CurrentDate ) ≥ Invoices::Date Created+Int ( 30 ); "");"")

in the same condition.

But.... remember 'm a novice!!!! :-))

Posted

How about:

Projects:_Status = "COMPLETE/INVOICED"
and
Get (CurrentDate) ≥ Invoices::Date Created + 30

Note:

  1. You don't need to use the If() function here, because there's no "then";  the condition is either true (apply formatting) or false (don't);
  2. 30 already is an integer.
  • Like 1
Posted

BTW, the two characters “: and p” equals  :tongue:

To avoid this paste your  Code into the code button =  <> from above.

Posted

That's funny - I thought The Missing Man was being humorous!!

Posted

:jester:  I like that Mike!

 

Another reason for using the Code button when pasting scripts and calculations ... what shows up in people's emails drops everything after a open bracket '[' (or at least it did in calculations).  Many times people use their email as the response they receive and don't come back to the forum to see that what exists on the post is quite different than their email.

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