Results 1 to 3 of 3
  1. #1
    Alaska1 is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Oct 2010
    Posts
    55

    total Count

    I need to have the query below count the number of Packet ID and the number of Data Entry Errors



    Select [Packet ID], DataEntry1 from DataEntryErrors
    WHERE DataEntry1 is Not Null
    UNION ALL
    Select [Packet ID], DataEntry2 from DataEntryErrors
    WHERE DataEntry2 is Not Null
    UNION ALL Select [Packet ID], DataEntry3 from DataEntryErrors
    WHERE DataEntry3 is Not Null;

    Example
    Packed ID 11

    Data Entry Errors
    time missing 5
    Incorrect entry 3
    Incorrect Job Number 3

    Any suggestions?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    alaska,

    are these fields in one table? it looks like it.

    if they are, do you really need a count in the actual query? most counting is done dynamcially, when needed, with domain functions. queries don't really need to produce aggregations in many situations, because the dynamic alternative is always available via built in functions or code.

    for instance, if you need this count on a form or report, simply use DCOUNT(), with or without conditions in a control or some other object. DONE.

  3. #3
    Alaska1 is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Oct 2010
    Posts
    55
    Thank you I will do the count on the report. Appreciate your help

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

Similar Threads

  1. Help with Query Total
    By mohara in forum Queries
    Replies: 4
    Last Post: 08-20-2010, 02:35 PM
  2. weekly total
    By nkuebelbeck in forum Queries
    Replies: 2
    Last Post: 03-24-2010, 02:59 PM
  3. Total a Query
    By Bridgid in forum Queries
    Replies: 0
    Last Post: 09-05-2009, 02:51 PM
  4. 7 day average and total
    By jannie in forum Access
    Replies: 1
    Last Post: 05-14-2009, 05:52 PM
  5. total in textbox
    By micfly in forum Access
    Replies: 3
    Last Post: 11-09-2008, 11:24 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