Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2013
    Posts
    27

    Make Calculation in Report IF Check box is checked in form

    I'm having a bit of trouble with a check box. I have a report that is used as a Purchase Order, and is getting info from a form. On the Form I put a Check box. I want the Report to calculate Sales Tax if the Check Box is checked on the Form. I have tried researching IF statements and have not been able to get it to work correctly. The expression I want is =SUM([Subtotal])*(0.07). If the Check Box is not checked I want it to be zero. I thought the if statement would be something like this: =iif([SalesTax])=True, "=SUM([Subtotal])*(0.07), "0".


    Any Suggestions????

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    on your REPORT in your sales tax field you can have a formula like:


    =iif([forms]![formname]![salestaxcheckboxname] = -1 then, <Sales Tax Calculation>, 0)

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

Similar Threads

  1. Checked Box + Date = Checked box
    By ItsATJ in forum Access
    Replies: 12
    Last Post: 09-03-2013, 10:25 AM
  2. Replies: 1
    Last Post: 02-15-2013, 08:44 AM
  3. Replies: 2
    Last Post: 01-04-2013, 10:05 AM
  4. Replies: 2
    Last Post: 10-09-2012, 10:07 AM
  5. Replies: 22
    Last Post: 11-14-2011, 10:29 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