Results 1 to 4 of 4
  1. #1
    mooseisloose is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    8

    Adding duplicate values in a query

    I know what i'm trying to do sounds simple but can't seem to figure out a way to really get it done, here is an example:
    i have columns (fields) and respective data as following:

    JobNumber Price
    55555 200
    55555 300
    44444 400
    44444 200

    I want to be able to make a new query out of that to show:

    JobNumber Price


    55555 500
    44444 600

    where it eliminates the duplicate job numbers and adds their respective price. So all 55555 job numbers price is added together. Please help =)

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You want what's called a totals query. Create a query that returns those 2 fields. On the ribbon you'll see an icon that looks like a Greek "E" that says totals. Click on that and you'll see a new row in the query design grid. Change the Price field to say Sum instead of Group By and run the query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mooseisloose is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    8
    thank you so much, worked perfect!!! knew it was easy just couldn't remember lol

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Adding Sequential Values to Make-Table Query
    By obrien.robj in forum Queries
    Replies: 2
    Last Post: 08-25-2010, 12:55 PM
  2. Adding tabulated values in a query
    By Govyn in forum Queries
    Replies: 3
    Last Post: 06-28-2010, 12:51 PM
  3. Adding tabulated values in a query
    By Govyn in forum Access
    Replies: 0
    Last Post: 06-28-2010, 08:56 AM
  4. Assigning values to duplicate records
    By matteu1 in forum Queries
    Replies: 3
    Last Post: 02-17-2010, 10:35 PM
  5. Duplicate Values in table
    By senthilrg in forum Queries
    Replies: 3
    Last Post: 12-18-2009, 09: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