Results 1 to 2 of 2
  1. #1
    scorbett is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jul 2017
    Posts
    1

    Show data only if price changes

    Good day. I need some assistance. I created a simple table from an excel report I ran from my master database (Not Access). My goal is to show only those parts that have had a price change, either up or down. My table has these columns (ID #, Supplier ID, Order Date, PO Number, Part Number, Unit Price). This is bascially my PO history for a given date range.



    I need to create a query (or another table) that will show the entire row data (all for every row) when the price for the part number listed the part number column changes. I'm not sure if that makes sense. My table has 7,932 records. This goes from January to current date. My part numbers will be duplicated, as will dates and purchase orders. I need to see what part numbers have had either price increases or decreases. Any ideas on a simple query or some way I can accomplish using criteria.

    Shane

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,935
    perhaps something like

    select * from mytable inner join (SELECT partnumber FROM myTable GROUP BY partnumber HAVING min(price)<>max(price)) Q ON myTable.partnumber=q.partnumber

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

Similar Threads

  1. Order Entry Form - Case Price vs. Unit Price
    By Kaloyanides in forum Access
    Replies: 4
    Last Post: 05-18-2017, 06:31 AM
  2. Replies: 22
    Last Post: 12-20-2015, 02:46 AM
  3. Replies: 17
    Last Post: 12-14-2015, 10:23 PM
  4. Replies: 3
    Last Post: 03-24-2014, 08:17 AM
  5. Item without price, or duplicate price
    By Auto in forum Reports
    Replies: 5
    Last Post: 07-29-2013, 09: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