IF statement

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
morgentb
Posts: 4
Joined: Tue Oct 10, 2017 12:44 pm

IF statement

Post by morgentb » Thu Apr 28, 2005 4:47 pm

I am trying to do an if statement that pulls either data from a field or runs a calculated field. IIF(ACC_COD=^26^,CLM_NUM,hrrate)__Is this possible? Is there another way to do this? I keep getting "Invalid Argument"____Barbara______

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: IF statement

Post by kfleming » Fri Apr 29, 2005 6:58 am

Both return fields (CLM_NUM and hrrate) need to be of the same datatype. So if one is numeric, the other has to be numeric as well.____Kathleen__R&R Support

morgentb
Posts: 4
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: IF statement

Post by morgentb » Fri Apr 29, 2005 7:43 am

They are both numeric the difference is the hrate is a calculated field that produces a numeric value. Is there any way I can get what I need. Maybe not a calculated if statement but something else?

Post Reply