Need to total many of one relationship

G

Guest

I have 2 tables; Orders, and Time. Each table is related by the "Invoice
Number" field. The "Time" table has several records with the same Invoice
Number. I need a query that, when ran, will show one record for each Invoice
Number, and a total of all the times.

Thanks in advance.
 
K

kingston via AccessMonster.com

Create a totals query based on the table Time. Group by [Invoice Number] and
Sum on [Time]. You don't need the Orders table.
 
G

Guest

Kingston's solution is good; however, if you do need addtional fields frm the
Orders table, what you can do is create the totals query he suggested, the
create a query on the orders table with the field you want and join the
totals query on invoice number. Then put the field that totals the time
records in the query output.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top