Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    oldman is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    17

    Try an easy approach. I have set up a query that can be run at any time and produces an auxiliary table with no duplications. Run the query then go to your counting crosstab query based on the sample in T Counting Table. As long as the order number, item numbers and locations are not all repeated for the same employee for items that should count, this will give an accurate count. I ignored the up down aspect since a unique order number by an employee with unique items and unique locations was a single order. If the order number, location or item number changed, I assumed it should count as another order for that employee.

  2. #17
    William McKinley is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    59
    Quote Originally Posted by weekend00 View Post
    I did not think dloopup could do it before. since you've got it done, I just wiped off what i said.

    Ahh sorry, as I am a novice, I assumed I said something wrong .

  3. #18
    oldman is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    17
    I see nothing at all wrong with your answers William. I am not fluent in SQLs so my solutions always simply involve using the nice looking query building displays that MS provides for us to use as users. I have merely used what little I know how to do to try to solve a problem after first ignoring all hints about how they would go about it. If I published the SQL, I would only just barely be able to read it but I have designed a rather extensive database that primarily reads records over an ODBC connection and organizes things for people to use as simple users. I have it organized to use simple macros to update things in the database. When a revision to the software comes out, my databases convert flawlessly to the new software version because I practice the KISS principle, Keep It Simple Stupid.

  4. #19
    William McKinley is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    59
    Quote Originally Posted by oldman View Post
    I see nothing at all wrong with your answers William. I am not fluent in SQLs so my solutions always simply involve using the nice looking query building displays that MS provides for us to use as users. I have merely used what little I know how to do to try to solve a problem after first ignoring all hints about how they would go about it. If I published the SQL, I would only just barely be able to read it but I have designed a rather extensive database that primarily reads records over an ODBC connection and organizes things for people to use as simple users. I have it organized to use simple macros to update things in the database. When a revision to the software comes out, my databases convert flawlessly to the new software version because I practice the KISS principle, Keep It Simple Stupid.

    Ugh, the macros... I'll have to set those up soon too. Be on a look out for that thread .

  5. #20
    oldman is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    17
    Macros are a breeze. You list each thing you want the macro to do. Always start with a setwarnings to NO, or the thing will really bug you for letting it change things. End with 2 things, setwarnings to YES and mgsbox with a message that it is done.
    In between you openquery, the name of the query goes into the box at the bottom of the page, as often as it takes to accomplish what you are doing. In this case it looks like about 2 queries and leave the crosstab query open for manual closure unless you want to write that crosstab result to a new table. In that case, set up a query to purge the results table by deleting all records, then run the append query, the crosstab that writes back to the results table and open the report that gets its data from the results table. The end result is a report ready to print in less than a minute based on as much data as your organization can generate in a week, or whatever time period you select. If you print preview the report, you don't even need the msgbox because you will know it is done.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Count Unique Records
    By PonderingAccess in forum Queries
    Replies: 2
    Last Post: 08-19-2010, 06:54 AM
  2. Replies: 7
    Last Post: 07-22-2010, 01:14 PM
  3. Count of records
    By Aston in forum Access
    Replies: 2
    Last Post: 03-30-2010, 05:20 AM
  4. Count of records
    By Bruce in forum Forms
    Replies: 3
    Last Post: 03-22-2010, 01:30 PM
  5. Count records issue
    By EstesExpress in forum Forms
    Replies: 1
    Last Post: 09-29-2009, 12:24 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