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

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

Recommended Posts

Posted

Here I Go Again,

I Have a field "StartTime" type TIME

I would like it to Display Red if the Value is greater than 08:15:00.

I am sure it needs to be done with a text format calc but can't get it to work.

If (StartTime>08:15:00; TextColor ( StartTime; RGB ( 255; 0; 0) )) Result=Text

That displays all records as red. Help Please I have tried every permutation i can think of.

Posted

First of all , you are trying to use a Text Formating Functions with a Time Field.

Try:

Case ( StartTime ≥ Time ( 8 ; 15 ; 0 ) ; TextColor ( GetAsText ( StartTime ) ; RGB ( 250 ; 0 ; 0 ) ); GetAsText ( StartTime ); TextColor ( StartTime ; RGB ( 0 ; 0 ; 0 ) ))

HTH

Lee

Posted

Thanks again Lee,

As usual, works like a dream.

Someday I will learn how the case, let, if... etc work.

I new it had to do with working with the time field and changing it to text with the GetAsText function. I tried to use it but couldn't figure out how.

Thanks again.

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