Results 1 to 2 of 2
  1. #1
    nicknicknick is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    1

    IIF Statements and Update Queries.

    Not sure where this belongs, I'll try here as I believe it is for queries.
    I have several problems.
    I am making a pretty basic database for a 'fake' pet store.

    First off, I need an IIF Statement for GST.
    Some of my animals are taxable, others aren't, so I need an IIF Statement 'If Taxable=True, Apply GST, else Don't'

    Also, there is to be a discount of %20 on the postage to 'VIP' Customers.
    So I also need an IIF Statement,
    'IIF VIP=True, 20% discount of postage, else don't'

    Thirdly and finally, I have a problem, which is to do with the Sales and Stock.
    When a sale is made of say 4 cows, I want the Number Of Animals In Stock field to decrease by 4 (that is in the Stock Table).

    Thanks.

  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,641
    This type of thing:

    IIf(Taxable=True, GST, 0)

    or

    IIf(Taxable=True, Price * GST, 0)
    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. Combining 3 update queries for a single table
    By Grahamiwa in forum Queries
    Replies: 1
    Last Post: 05-13-2011, 02:35 PM
  2. Can't Update Queries linke to SQL Tables
    By tdejournett in forum Queries
    Replies: 1
    Last Post: 09-26-2010, 09:58 PM
  3. Need help with update query / queries
    By Wayne2072 in forum Queries
    Replies: 1
    Last Post: 05-24-2010, 01:42 AM
  4. Replies: 2
    Last Post: 04-04-2010, 06:14 PM
  5. Combining like update queries
    By xcr800man in forum Queries
    Replies: 2
    Last Post: 05-20-2008, 08:36 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