Results 1 to 3 of 3
  1. #1
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147

    How to count data from another query by date


    I have a query that is used to pull data to the report by between dates to include writeups and yes, no, and N/A's per question (combobox). Works great.

    I created another query to pull the totals of yes, No, and N/A's by column off of that query. Here is one example of one of the questions..

    Code:
    Doc28-51No: Sum((Abs([Doc #28-51]="No")))
    Doc28-51Yes: Sum((Abs([Doc #28-51]="Yes")))
    Doc28-51NA: Sum((Abs([Doc #28-51]="N/A")))

    I created another query off of this query to total the yes, no and n/a to place at the report footer by sub-report from this query giving me the totals I need. It will pull all the column totals but not by the between dates I need.

    Code:
    Total No: Sum([Doc2No]+[Doc25No]+[Doc12-5No]+[Doc28-51No])


    I need the query to pull by the between dates from the report query when I enter it in.

    Is there a way that this can be done. I hope I explained it well enough...

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

    check out the responses on the AWF forum

  3. #3
    Brian62 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2009
    Posts
    147
    Adam,

    Where is that forum? I can't find it anywhere.

    Thanks, Brian

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

Similar Threads

  1. Replies: 9
    Last Post: 10-01-2010, 05:50 PM
  2. count query
    By lmp101010 in forum Access
    Replies: 6
    Last Post: 08-02-2010, 02:31 PM
  3. count query
    By lmp101010 in forum Queries
    Replies: 1
    Last Post: 08-01-2010, 12:20 PM
  4. Replies: 2
    Last Post: 02-20-2010, 01:11 AM
  5. Count Dates within Date Range
    By eckert1961 in forum Queries
    Replies: 2
    Last Post: 03-08-2009, 10:58 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