IIF Statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Davidsm
    New Member
    • Sep 2007
    • 16

    IIF Statement

    How would i complete this IIF statement if a want to fill the empty fields in a column called REGION_NAME with the word "BLANK" and use whatever is in the populated fields if not blank

    IIf([dbo_MIS_IntakeM td]![Region_Name] Is Null,"BLANK","" )

    Thanks Dave
  • Stwange
    Recognized Expert New Member
    • Aug 2007
    • 126

    #2
    Originally posted by Davidsm
    How would i complete this IIF statement if a want to fill the empty fields in a column called REGION_NAME with the word "BLANK" and use whatever is in the populated fields if not blank

    IIf([dbo_MIS_IntakeM td]![Region_Name] Is Null,"BLANK","" )

    Thanks Dave
    If I understood you correctly, this should do it:

    IIf([dbo_MIS_IntakeM td]![Region_Name] Is Null,"BLANK",[dbo_MIS_IntakeM td]![Region_Name])

    Hope this helps.

    Comment

    • barry07
      New Member
      • Jan 2007
      • 47

      #3
      But

      Code:
      NZ([dbo_MIS_IntakeMtd]![Region_Name],"BLANK")
      is slightly less cumbersome

      Comment

      Working...