Results 1 to 11 of 11
  1. #1
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107

    how to create summative totals in one query access from one table?

    I have actually posted this as part of another thread but feel it might be best to open it as its new one, this has really thrown me and close to just doing this in Excel

    I have to summarize many different fields for this summative report. For example I need to group together the following and have no idea how to do this in one query, I will list the field and what it needs to show:




    Grade - Summarized by number in each grade
    Accepted - Those that have accepted (marked as "YES" in the database in the ACCEPTED field)
    Declines - Those that have not accepted (marked as "NO" in the database in the ACCEPTED field)
    Not replied - Those that have not let us know yet (marked as "blank" in the database in the ACCEPTED field)
    Withdrawn - Those that we have or themselves have withdrawn (marked as "TRUE" in the WITHDRAWN field)


    Now I can run these as individual queries and get the right results but I can not do it in one query (it changes the other field results), is there anyway of doing this? Simple step by steps would be great as I am not great at queries. Also When I did make them individually I couldn't put them together in a report as the queries were not linked?

    Any help very much appreciated.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Hi, you need to make what is called a subquery. You use a already created query and place it in a new query and then insert your criteria.

    HTH

  3. #3
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Oh great. I created individual queries but it wouldn't let me put them together in one query, is there something I am doing wrong?

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    What do you mean, it would not let you? Add the former query into your grid, the fields and any criteria you need. If you add other tables or queries, you will need to link them correctly by the correct field, normally Primary Key.

  5. #5
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Sorry I didn't make myself clear, I guess I am not good at explaining these things

    I have made 3 different queries that return the correct results. When I put them together in another query i get the following error message:

    You have chosen fields from record sources which the wizard can't connect. You may have chosen fields from a table and from a query based on that table. If so, try choosing from only the table or only the query.

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Are those queries linked to each other in the query grid?

  7. #7
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Oh, no they are not. How do I do that? Sorry I'm not good with these, really appreciate your help. I know how to link tables etc but never linked queries. Do I need to ensure the primary key is included in each query?

  8. #8
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    YES, That is what your NORMALLY link by.

  9. #9
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Yes thats what I thought. I do always link that way but never have I linked two queries together so unsure how that process works.

  10. #10
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Thanks so much for your help by the way. I think I just worked out my stupid mistake.

    Scott

  11. #11
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Glad you got it sorted out. Good Luck With Your Project.

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

Similar Threads

  1. Summative query on a single tabled database
    By ayupchap in forum Queries
    Replies: 3
    Last Post: 05-01-2014, 01:59 PM
  2. Replies: 2
    Last Post: 08-05-2013, 06:36 PM
  3. Replies: 2
    Last Post: 06-07-2013, 11:20 AM
  4. Replies: 2
    Last Post: 01-28-2013, 08:59 PM
  5. Create Running Totals
    By dascooper in forum Access
    Replies: 9
    Last Post: 04-05-2011, 09:22 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