Results 1 to 3 of 3
  1. #1
    ieatglitter is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    2

    Conditional Value in report design?

    Hello everyone,

    I am new and I am about to rip my hair out. I am a beginner with Access 2013 and I am currently taking a class on it. Unfortunately, it is an online class so the professor isn't always available to speak with.

    I am a bit confused on a report I have to do and can't figure out the expression to use in report design. I will include screen sprints so that there is a better understanding of what it is I am trying to do.

    In report design view, I have been told to create a sales prices. If the Base Cost is $10 or more, there is a 2% discount. If the Base Cost is less the $10 there is 1% discount. I used the expression =IIf([Base Cost]>10,0.02*[Base Cost],0.01*[Base Cost]). It calculates the expression and gives me the correct discount, but I need the sum after the discount has been calculate. SEE ATTACHMENTS!



    As you can see on the first attachment, it shows the discount and not the sum! I am very confused with what to do, so if anyone can help me with the expression, I would be really happy! I know it sounds stupid, but I have been trying to figure this out on my own for awhile now before turning in the assignment! Ugh

    Thank you!
    Attached Thumbnails Attached Thumbnails Screenshot (5).png   Screenshot (6).png   Screenshot (7).png  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Try

    =[Base Cost] - [Base Cost] * IIf([Base Cost]>10, 0.02, 0.01)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ieatglitter is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    2
    Quote Originally Posted by June7 View Post
    Try

    =[Base Cost] - [Base Cost] * IIf([Base Cost]>10, 0.02, 0.01)
    Omg...marry me??? I love you so much right now! hahaha
    Thank you so much!

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

Similar Threads

  1. Creating Conditional Report!! Please help me!
    By ahmad6483 in forum Reports
    Replies: 3
    Last Post: 05-08-2013, 03:21 PM
  2. Conditional formating in a report
    By msmithtlh in forum Programming
    Replies: 12
    Last Post: 03-20-2013, 02:25 PM
  3. Replies: 2
    Last Post: 12-14-2012, 02:53 PM
  4. Conditional Formatting in a Sub Report
    By cduveE6 in forum Reports
    Replies: 2
    Last Post: 04-03-2012, 01:41 AM
  5. database design: conditional drop-downs?
    By sebeckett in forum Access
    Replies: 5
    Last Post: 09-05-2011, 12:46 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