• 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)

    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: 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: