By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,139 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,139 IT Pros & Developers. It's quick & easy.

How do I Use IIf() with the Operator in a String

P: 1
i have 2 fields. Text1 and text2. Text1 is num field and text2 is text field. How to use iif. The data is like this..in text1 (22,335,69,85,63) and in text2 ("<=50",">=350","<=75%"">=80%"). I want show in the result as "P" or "F".
May 23 '12 #1

✓ answered by TheSmileyCoder

You can use Eval to calculate string expressions. Imagine you have a control on your form, called tbEval and you set its controlsource to:
Expand|Select|Wrap|Line Numbers
  1. =Iif(Eval(text1 & text2);"P","F")

Share this Question
Share on Google+
1 Reply


TheSmileyCoder
Expert Mod 100+
P: 2,321
You can use Eval to calculate string expressions. Imagine you have a control on your form, called tbEval and you set its controlsource to:
Expand|Select|Wrap|Line Numbers
  1. =Iif(Eval(text1 & text2);"P","F")
May 23 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.