Results 1 to 2 of 2
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    nested iif

    Hi all. I am using access 2010. I have inherited a database that uses nested iif statements to create a letter in the report object. I having trouble adding a couple of calculated fields and text to the letter. Do anyone have any knowledge of this type programming to help me please. ex.

    =[txt]iif(is not null[something]>=0,[txt1] &"Run cat run"&.......



    I will have a better example once I can get someone to help. thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    None of that makes sense. Explain in plain English the result you want.

    General syntax of IIf is:

    =IIf(expression is true, do this, else do this)

    Other functions you might find of interest are Switch() and Choose().

    Is Not Null cannot be used that way. Use IsNull. Review http://allenbrowne.com/casu-12.html
    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.

Similar Threads

  1. Nested IIF for two comparisons
    By aflamin24 in forum Access
    Replies: 3
    Last Post: 09-19-2012, 05:18 PM
  2. Nested IIF
    By Oldie in forum Queries
    Replies: 1
    Last Post: 02-17-2012, 06:04 AM
  3. Nested Join Help?
    By sab in forum Access
    Replies: 1
    Last Post: 12-16-2011, 05:08 PM
  4. Nested data
    By guichemot in forum Database Design
    Replies: 5
    Last Post: 01-17-2011, 01:20 PM
  5. Nested IIF problems
    By Brian Collins in forum Access
    Replies: 2
    Last Post: 10-12-2010, 01:37 PM

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