Results 1 to 3 of 3
  1. #1
    jsfasman is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    2

    Question Using an Iif expression in a report

    I have created a report with a control/field that usually posts a number, but I have added an IIf expression so the result is the word "STOCK" if the number is 99



    =IIf([Change number]=99,"STOCK",[Change number])

    I want to use an IIf expression in the same way on another control/field so the result is "ALL" if the number is 111

    =IIf([Episode number]=111,"ALL",[Episode number])

    However, every time I enter the IIf expression for the second control, I get an error message that it is a circular argument (Invalid control property; control source) and the result on the report is Type!

    I have entered the expression by copying and pasting what I used on the first control, by using the expression builder and by just typing in the info. Why would this expression work on one control and not the other? Both have the same properties in the underlying table.

    HELP!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    This can happen if the control has same name as a field used in expression.
    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.

  3. #3
    jsfasman is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    2

    Lightbulb

    Quote Originally Posted by June7 View Post
    This can happen if the control has same name as a field used in expression.
    Thank you. It's working now. That was the one thing that I didn't check.

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

Similar Threads

  1. Replies: 9
    Last Post: 01-31-2013, 12:55 PM
  2. Expression on Report #Name?
    By burrina in forum Reports
    Replies: 0
    Last Post: 01-06-2013, 02:42 AM
  3. Report Expression Building
    By KMac in forum Reports
    Replies: 7
    Last Post: 12-07-2012, 11:29 AM
  4. Report - Expression Builder
    By AndreasPanayiotou in forum Reports
    Replies: 3
    Last Post: 09-16-2012, 01:10 AM
  5. Calculated expression in report
    By Grizz2 in forum Reports
    Replies: 3
    Last Post: 12-20-2010, 08:50 PM

Tags for this Thread

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