Menu

PUBLIC.IIF signature

Help
2015-06-12
2015-06-12
  • Steve Romanow

    Steve Romanow - 2015-06-12

    Based on prior communication, IIF() shold be okay as long as the 2nd and 3rd args are the same type.

    I am having issue with a db. Here is the message.

    UCanAccess>routine signature not found for: PUBLIC.IIF(INTEGER,VARCHAR,VARCHAR)
    

    This is consistent in 2.0.9.3 and 2.0.9.5.

    PS, tysm for your project. Very helpful.

     
  • Gord Thompson

    Gord Thompson - 2015-06-12

    I was able to recreate your issue by changing a field in an Access table from Yes/No to Number (Long Integer).

    If you have Yes/No values in an integer field (as -1 and 0, respectively) then you can use

    SELECT IIf(CBool(integerField), 'trueValue', 'falseValue') AS whatever ...
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.