Results 1 to 5 of 5
  1. #1
    stryder09 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    85

    Another equation almost done now

    Okay I am trying to use the following equation but keep getting back the error
    The expression you entered contains invalid syntax.
    You may have entered a comma without preceding value or identifier

    the equation

    =IIF(AND([DeadPinRecoveryTopMeasured]>=[DeadPinThicknessMIN],[DeadPinRecoveryTopMeasured]<=[DeadPinThicknessMAX]),0,IIF(AND([DeadPinRecoveryTopMeasured]+2>=[DeadPinThicknessMIN],[DeadPinRecoveryTopMeasured]-2<=[DeadPinThicknessMAX]),2,IF(AND([DeadPinRecoveryTopMeasured]+4>=[DeadPinThicknessMIN],[DeadPinRecoveryTopMeasured]-4<=[DeadPinThicknessMAX]),5,20)))

    Again any help would be apprciated. I feel a little bit out of my element with the equation aspect of all of this.



    thanks,

    Brad

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Access does AND & OR differently than Excel. In Access:

    =IIF(OneThing OR Another, This, That)
    =IIF(OneThing AND Another, This, That)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    stryder09 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    85
    so saying that how should I change the wording? I truly am dense when it comes to this. so bare with me.

    Brad

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Got hung up when we had a power outage that took everything down. Did you get this sorted out? If not, what have you got so far?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    stryder09 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    85
    No I'm still trying to figure it out! Feeling very dense now! lol

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

Similar Threads

  1. Another equation question
    By stryder09 in forum Access
    Replies: 3
    Last Post: 02-17-2011, 11:41 AM
  2. time equation in form
    By WCR in forum Forms
    Replies: 2
    Last Post: 01-05-2011, 11:13 PM
  3. Storing an Equation in Table
    By tmedler in forum Programming
    Replies: 0
    Last Post: 03-09-2009, 09:25 AM

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