Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    1

    Newbie Needs help with combine/average

    I am sure that I am just trying to make this more difficult than it is but I need some help. I am very new to access and setting it up for my company. I have a customer data base with the following fields:
    Job ID
    Customer ID
    Job Description
    Quote
    What I want to do is to combine all of the duplicate Customer ID's and then get an average of the quote. I have used the query and thought I had it but I don't it is not combining the matching Customer ID's they are still listed out individually. It did add the field: count of jobs which would be used to get the average once the matching records are combined.



    I have got another Query to do after I sort this one out. I want to be able to determine the deposit that each customer would owe me if they accept the quote. It would use the same fields but then give me what the 20% deposit would be.

    Thanks in advance for the help!! It is greatly appreciated!!!

  2. #2
    jya is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2007
    Location
    Chicagoland
    Posts
    109
    For the first query, I imagine that you are looking to do a 'Total' query where you select 'Group By' based on Customer ID and 'Avg' for Quote.

    I am not sure I completely understand what you are looking for in your second query. I am guessing that you want to create an expression field.

    ex.

    Deposit: 0.20 * [Quote]

    Hope this helps.

  3. #3
    Join Date
    May 2008
    Location
    North Charleston, SC
    Posts
    20
    your query would look something like this:

    select customerid, avg(quote)
    from table
    group by customerid

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

Similar Threads

  1. combine three tables in a query
    By neuenglander in forum Queries
    Replies: 0
    Last Post: 08-21-2008, 04:02 AM
  2. Weighted Average - Challenges
    By edmund_xue in forum Access
    Replies: 0
    Last Post: 04-02-2008, 12:54 AM
  3. Combine queries results in forms
    By frasilvio in forum Queries
    Replies: 12
    Last Post: 01-10-2008, 01:34 AM
  4. form formula to combine two fields
    By InvGrp in forum Forms
    Replies: 1
    Last Post: 10-20-2006, 12:10 PM
  5. Get average of unbound textboxes.
    By markhook in forum Forms
    Replies: 8
    Last Post: 07-14-2006, 09:30 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