Results 1 to 4 of 4
  1. #1
    PATRICKPBME is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    171

    Getting #NAME result after expression

    I have 3 fields. The CAP field and the 3rd Qtr YTD are currency fields. The third field is Alert and is a text field.



    I want to have the Alert field results based upon a calculation using the CAP and YTD fields. If the YTD field is greater than 89.99% of the CAP I want the Alert field to display the word "Alert". Otherwise it would display "Okay". Here is my current expression which so far result in the record displaying #NAME".

    =IIf([3rd Qtr YTD>".89999*CAP"],[Alert],[Okay])

    Can someone point out the error of my ways?

  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,518
    Try

    =IIf([3rd Qtr YTD]>.89999*CAP,"Alert","Okay")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    PATRICKPBME is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    171
    Thanks so much. That did it!

  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,518
    No problem. You want brackets around field names only, and quotes around literal text.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 12
    Last Post: 07-22-2016, 12:39 PM
  2. Expression with mixed value result
    By chelseasikoebs in forum Access
    Replies: 2
    Last Post: 10-23-2013, 09:18 AM
  3. Replies: 5
    Last Post: 09-25-2013, 09:35 AM
  4. Replies: 3
    Last Post: 07-12-2010, 01:38 PM
  5. Replies: 1
    Last Post: 07-12-2009, 05:09 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