• Joining Multiple IIf Statemetns (Access 2003 SP1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Joining Multiple IIf Statemetns (Access 2003 SP1)

    • This topic has 2 replies, 3 voices, and was last updated 19 years ago.
    Author
    Topic
    #432276

    I’m trying to create a column to populate with 3 conditions. See below. Can someone help??

    Method: IIf([Call Start] Is Not Null,”IVR”) Or ([MinOfDate] Is Not Null & [Call Start] Is Null,”LMS”) Or ([Call Start] Is Null & [MinOfDate] Is Null,”N/A”)

    Viewing 1 reply thread
    Author
    Replies
    • #1013685

      Method: IIf([Call Start] Is Not Null,”IVR,iif([MinOfDate] Is Not Null & [Call Start] Is Null,”LMS”, iif([Call Start] Is Null & [MinOfDate] Is Null,”N/A”)))

    • #1013863

      To combine conditions, use AND instead of the concatenation operator &. And use the IsNull(…) function to test if a value is null:

      Method: IIf(Not IsNull([Call Start]),”IVR”,IIf(Not IsNull([MinOfDate]),”LMS”,”N/A”))

    Viewing 1 reply thread
    Reply To: Reply #1013863 in Joining Multiple IIf Statemetns (Access 2003 SP1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel