MS Access 2007, IIF and Null expressions

120 pts.
Tags:
Access 2007
IIF
Microsoft Access
Null Expressions
Ok what I want to do is very simple but nothing I have found is helping me. I have a field that sometimes contains a value and but most of the time it is empty. What I want to do is write an expression that says if there is something in this field, then “25”. I believe that I should be using the “Is Not Null” but no matter how I use it I can't seem to get it to work. The fields name is “1st Position Held Elected or Appointed” Any help would be greatly appreciative. This is what I’ve tried and various versions of this:

IIf([1st Position Held Elected or Appointed] Is Not Null,"25")



Software/Hardware used:
MS access 2007

Answer Wiki

Thanks. We'll let you know when a new response is added.

You could use the IsNull Function.

Something like this:

<pre>IIf(<b>IsNull</b>([1st Position Held Elected or Appointed]),<something else>,"25")</pre>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • msi77
    Try this nz([1st Position Held Elected or Appointed], '25')
    1,660 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following