Results 1 to 7 of 7
  1. #1
    AmandaMc is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    3

    Smile how to build a function in access

    I am doing my sba for school and I am having difficulties putting a function to calculate: An exam grade >=80% will recieve a discount of 5% off exam processing fee, in a table in access.



    I used this formula =IIf("Exam"=">=70%","5% dicount of exam processing fee") but nothing happened with the figures.
    The file could not be attached but, I could email the document to whoever is willing to help me.

  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
    Try

    =IIf(Exam>=.7,"5% dicount of exam processing fee")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AmandaMc is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    3
    Ok im going to try this.. thank you

  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
    No problem. With the quotes, you were comparing two literal strings, which would never have been equal.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    AmandaMc is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    3
    it still hasn't work , any more options?

  6. #6
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    used this formula =IIf("Exam"=">=70%","5% dicount of exam processing fee") but nothing happened with the figures.

    is Exam a numerical Field if it is try

    =IIF([Exam]>=.85,[Fee]*.95,[Fee])

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I guess I'll get out of the way.
    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: 9
    Last Post: 10-05-2012, 06:15 AM
  2. Replies: 0
    Last Post: 03-09-2012, 02:06 PM
  3. Access does not build correct APPEND query
    By lwoods in forum Queries
    Replies: 3
    Last Post: 05-06-2011, 02:19 AM
  4. Access Query build
    By zarfx4 in forum Access
    Replies: 3
    Last Post: 04-08-2010, 09:53 AM
  5. Can access build a exe file?
    By jianwei87 in forum Programming
    Replies: 1
    Last Post: 08-04-2008, 06:48 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