+ Reply to Thread
Results 1 to 3 of 3

Why does the iif function keep adding [] on its own??

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Why does the iif function keep adding [] on its own??

    I have the little formula you see below... when I press enter access converts to what you see below that... any ideas as to why???

    Mine
    STAT: IIf([Status]=”00”,”ACT”,IIf([Status]=”03”,”ALT”,IIf([Status]=”01”,”ALT”,IIf([Status]=”02”,”ALT”,IIf([Status]=”08”,”ALT”,IIf([Status]=”09”,”ALT”,IIf([Status]=”06”,”DOR”,IIf([Status]=”07”,”DOR”,IIf([Status]=”10”,”DOR”,””)))))))))

    Access
    STAT: IIf([Status]=”00”,[”ACT”],IIf([Status]=[”03”],[”ALT”],IIf([Status]=[”01”],[”ALT”],IIf([Status]=[”02”],[”ALT”],IIf([Status]=[”08”],[”ALT”],IIf([Status]=[”09”],[”ALT”],IIf([Status]=[”06”],[”DOR”],IIf([Status]=[”07”],[”DOR”],IIf([Status]=[”10”],[”DOR”],[””])))))))))
    Last edited by jgomez; 03-22-2012 at 04:25 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,019

    Re: Why does the iif function keep adding [] on its own??

    It appears to be the quotation marks you have used. They all appear to be closing quote marks. I replaced them with the standard ones on my PC and it worked fine.

    Not sure how you got them all to be closing quotes. Did you use special characters?

    Alan
    Last edited by alansidman; 03-22-2012 at 03:59 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: Why does the iif function keep adding [] on its own??

    Well because of the length of the expression I did it it word... the expression builder was too full. Alan... you are the man!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1