Results 1 to 6 of 6
  1. #1
    N3w2access is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    17

    Control source Expression giving #Error

    I am trying to do simple IIF expression but for some reason it is giving me an #error I am doing =IIF [Error_Type]="error1", Analyst_Comment, " ")


    Basically I believe this means that if there is an error within the Error_Type field name called Error1 it will show the comments if not it will be blank but it is giving me an error and I dont know why? it says its a circular reference or invalid control property?

    Many thanks for any help on this.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Does your code include an opening paren? IIF(Test,IfYes,IfNo)

  3. #3
    N3w2access is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    17
    It is a text box and the control source shows as =IIF(Error_Type]="error1", Analyst_Comment, " ") so that it only shows the comments for error1. Thanks

  4. #4
    N3w2access is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    17
    I have just created a new form and tried this again and it is now working so I dont know why it would not work on the old form but my issue has now been resolved. Many thanks.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for posting back with your success and solution. Good news.

  6. #6
    N3w2access is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    17
    Something to add was after looking at my old form it was because I needed to change the name on the ALL tab and that fixed the issue ie Error_Type to Error_Type1.

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

Similar Threads

  1. Replies: 8
    Last Post: 09-19-2013, 03:07 PM
  2. Replies: 1
    Last Post: 08-13-2013, 10:06 AM
  3. Replies: 3
    Last Post: 04-30-2013, 05:32 AM
  4. Replies: 2
    Last Post: 05-17-2011, 02:40 PM
  5. Textbox Control Source As An Expression help!
    By emilyrogers in forum Forms
    Replies: 11
    Last Post: 02-11-2011, 07:31 AM

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