Results 1 to 3 of 3
  1. #1
    "OJ" is offline Novice
    Windows 10 Access 2013
    Join Date
    Feb 2016
    Posts
    1

    working out the commission

    this is the code i am currently working on to output the commission of my car sale but when i run it i get a pop up box with commission asking me to input a value but i just want it to work itself out.
    hope someone can help?

    SELECT SalesmanNo, CarSaleNo, LicencePlate, Price, SUM (Price) AS CarSaleAmount, SUM (Price * Commission) As CommisionEarned


    FROM CarSale
    WHERE DateSold BETWEEN #21/11/2015# AND #20/12/2015#
    GROUP BY SalesmanNo, CarSaleNo, LicencePlate, Price, DateSold;

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Where is this code located?
    Where and how does the pop up form get invoked??

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    I would guess that Commission is not the name of a field in your CarSale table

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

Similar Threads

  1. Working query stops working after importing
    By Abacus1234 in forum Import/Export Data
    Replies: 3
    Last Post: 10-25-2015, 09:12 PM
  2. Replies: 1
    Last Post: 12-27-2014, 12:38 PM
  3. simple agent/commission report
    By smil27 in forum Access
    Replies: 46
    Last Post: 07-06-2013, 02:06 PM
  4. How to work out commission rates
    By matpaulin in forum Queries
    Replies: 1
    Last Post: 02-07-2013, 06:15 PM
  5. Replies: 3
    Last Post: 01-29-2013, 04:34 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