Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR9 How to do with If statement?

Status
Not open for further replies.

JoyCR9

MIS
Jan 13, 2004
70
CA
If may not be the tool I want to use, so please advise accordingly.

Problem:

I have two formulas entered in the detail section of my report. Both are time formulas formatted DD:HH:MM:SS. I want to compare formula 1 to formula 2 and print a text message.

eg:
if {@formula1} is less than or equal to {@formula2}
then "SLA MET"

I can't figure out how to get this to work.

sample data from formula 1:

00:00:25:38
00:00:45:43

sample data from formula 2:
00:01:00:00
00:04:00:00


 
If the 2 formulas return the same type value, then did you try a new formula like:

Code:
if {@formula1} <= {@formula2}
then "SLA MET"
else
"SLA NOT MET"

Place that formula on your report..


[profile]
 
Embarrassed...tried that prior to posting...didn't work.

Does now. Must have had a typo in it.

Thanks [blush]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top