Results 1 to 3 of 3
  1. #1
    DamnYankees is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    2

    Using a query to create

    For the life of me I can't figure out how to do this, so hopefully someone can help me. Let's say I have a table which looks like this:

    Code:
    Bill  1990    72
    Bill  1991    73
    Bill  1992    71
    Bill  1993    55
    Bill  1994    78
    Bill  1995    73
    Stan  1990    130
    Stan  1991    122
    Stan  1992    100
    Stan  1993    115
    Stan  1994    101
    Stan  1995    112
    The first column is name, 2nd is year, 3rd is quantity. Very simple spreadsheet.

    What I need to do is have the program spit out a spreadsheet which then shows me the total quantity for each person over every 3-year span. So I would want the resulting graph to look like this:



    Code:
    Bill  1990    216
    Bill  1991    199
    Bill  1992    204
    Bill  1993    206
    Stan  1990    352
    Stan  1991    337
    Stan  1992    316
    Stan  1993    328
    What this would be is the first column is again the name, the 2nd column is the first year of my 3 year span, and the 3rd column is the sum. So just taking the first row, that would be telling me that for the 3 year period going from 1990-1992, Bill's total quantity is 216. And the next row is Bill quantity for the three year span of 1991-1993. And so on.

    I've tried everything I can think of in the design view format in queries to make this work, but I can't do it. Any ideas?

  2. #2
    DamnYankees is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    2
    Darnit - my subject line looks like it got cut off. I don't know how to edit it.

  3. #3
    farls is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    4
    use the crosstab query wizard

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

Similar Threads

  1. Using running total in query to create graphs
    By maggioant in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 05:58 AM
  2. Create table out of union query
    By DKruse1969 in forum Queries
    Replies: 2
    Last Post: 08-28-2009, 09:55 AM
  3. Create student teams via query?
    By jmccullough in forum Programming
    Replies: 0
    Last Post: 08-19-2009, 08:21 AM
  4. Create a query from differents records
    By fabionik2004 in forum Access
    Replies: 0
    Last Post: 07-14-2009, 12:26 PM
  5. How to create a query for logical combo??
    By valkyry in forum Queries
    Replies: 1
    Last Post: 10-08-2007, 02:32 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