Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

IIF Statement

Discussion in 'Information Technology' started by Levans digital, Jul 28, 2006.

Tags:
  1. Levans digital

    Levans digital
    Expand Collapse
    Guest

    Hi,

    I am creating a query with many variables at least 8.

    below is the IIf expression for 1 variable:
    Storagedays: IIf(Not IsNull([ReceivedDate]) And IsNull([StuffedDate]) And
    IsNull([DeliveredDate]) And IsNull([ReturnedDate]) And Not
    IsNull([DeliveredBackDate]) And IsNull([ReturnedBackDate]) And Not
    IsNull([ShippedDate]),DateDiff("d",[ReceivedDate],[DeliveredBackDate]),"")

    That expression adds up to 275 characters with spaces how much characters
    can my expression hold is it possible for me to add the nest 7 multiply 8 x
    275 = 2200
    thats an averge it can go up to 200 characters less or 200 characters more
    depending on the other question

    Is it even logical to add other IIF statemnts unto this and if so can I get
    an example?
    thanks
     
  2. Loading...


  3. betwalk@gmail.com

    betwalk@gmail.com
    Expand Collapse
    Guest

    You might like to consider using SWITCH instead of IIF.

    hth-


    Betsy
     

Share This Page