Results 1 to 2 of 2
  1. #1
    Blessy is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    1

    IIF in query

    i need help with putting iif statements together in my query and I will be glad with any little help.



    Expressions in a Query
    IIF order< 0, AND received = 0 , "Current Year"
    IIF order>0, AND received =0, "Current Year"
    IIF order>0, AND received<0, "Current Year"
    IIF order=0, AND received>0, "Prior Year"
    IIF order is null AND received>0, "Prior Year"
    IIF order=0 AND received=0, “Prior Year
    IIF order>0, AND received>0, "Prior Year"
    IIF order=0, AND received>0, "Prior Year"

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    That might be too many IIfs for nesting, 7 might be limit. Maybe you don't need all those conditions.
    IIf(order<>0 AND received<=0, "Current Year", "Prior Year")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums