Results 1 to 2 of 2
  1. #1
    sichilaba is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    24

    problem with the IIF(Eval expression

    hI

    Please Someone help me



    The expression below is returnming the #Name

    IIf(Eval([rating1] between F and H and [TEXT379] Between A and H)),"Repeat","Proceed")

    What could be the problem?

    Thank you in advance

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,842
    eval evaluates a text expression e.g.

    eval("22 * 45")

    it looks to me like

    a) you don't need the eval function and
    b) the expression needs to structured properly (use of quotation marks, you have superfluous brackets and between is not a vba operator (only SQL), use >= and <= instead or a different function such as instr or in)

    something like - to demonstrate different ways

    IIf([rating1] in ("F","G",H") and instr("ABCDEFGH",[TEXT379])>0,"Repeat","Proceed")

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

Similar Threads

  1. Replies: 3
    Last Post: 01-30-2015, 11:34 AM
  2. Replies: 3
    Last Post: 06-08-2014, 05:36 PM
  3. Access - Eval function
    By dodo47 in forum Access
    Replies: 19
    Last Post: 02-11-2012, 02:02 AM
  4. Expression Builder Problem
    By benthamq in forum Forms
    Replies: 3
    Last Post: 10-07-2011, 01:02 PM
  5. Eval function with variables
    By tuna in forum Programming
    Replies: 3
    Last Post: 05-14-2010, 06:02 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