Results 1 to 3 of 3
  1. #1
    crystal2000a is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    2

    Count Records by Reject type on Max Date

    Hi Experts,

    I'm extremely new to access and have been given the task to create and send a report for the number of rejects at the end of the day. I'm trying to set up a query to do this but it isn't working quite as I want it to.

    I have Q1-C that is set to count the number of rejects at stations. However when I run this query, it counts total rejects by type (all records) and not by date. For example, on 12/3/12 there are 2 rejects (1 - Epoxy on screen and 1 - electrolyte leaks) but the query counts 17 electrolyte leaks and 1 epoxy on screen for 12/3/12.




    Next I would like to build a report that would display the type of rejects of the last day for both 'Rejects at Stations' and 'Screen Rejects'. So the report "Productions Rejects"should show rejects on 12/3/12 for Q1-C and 12/4/12 for Q1-O. However, the report now shows all the dates of rejects.

    I have attached the database i'm working on. Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    See if attached is what you are looking for. Needed to re-arrange your queries a bit.
    Attached Files Attached Files

  3. #3
    crystal2000a is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    2
    Thank you for the quick reply. Actually no, the numbers still do not match up. Basically, I want to do 3 things:

    1. Count number of rejects on the max date grouped by station and reject type for "Reject by station" table
    2. Sum of Quantities on max date grouped by station and reject type for "Screen Rejects" table.
    3. Create a report to incorporate these 2 information (Report should show: 2 rejects for "Reject by Station" on 12/3/12 and 7 rejects for "Screen Rejects" on 12/4/12. All grouped by station and reject type)

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

Similar Threads

  1. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 PM
  2. Count records since date
    By sotssax in forum Queries
    Replies: 10
    Last Post: 03-07-2012, 07:30 PM
  3. Date - Textbox type mismatch 13
    By mdex in forum Programming
    Replies: 7
    Last Post: 01-20-2012, 08:44 AM
  4. Replies: 1
    Last Post: 12-17-2010, 04:25 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