sum a field

J

JIM.H.

Hello,
I have a table which has Id, Desc, Num,Qty. This table is
updated with CSV files and files may have the same Id,
Desc and Num but a different Qty. So id and Desc might
repeat itself in the table. Now I need to create another
table that finds repetition of Desc fields and sums qty
and create a single row for it in the new table.
How can I do that?
Thanks,
Jim.
 
G

Guest

To Jim

(e-mail address removed)-net.ne.jp
I have a table which has Id, Desc, Num,Qty. This table is
updated with CSV files and files may have the same Id,
Desc and Num but a different Qty. So id and Desc might
repeat itself in the table. Now I need to create another
table that finds repetition of Desc fields and sums qty
and create a single row for it in the new table.
How can I do that?
Thanks,
Jim.

"HILL STREET BLUES" Daniel Travanty is the "KEY".
 
J

John Vinson

Hello,
I have a table which has Id, Desc, Num,Qty. This table is
updated with CSV files and files may have the same Id,
Desc and Num but a different Qty. So id and Desc might
repeat itself in the table. Now I need to create another
table that finds repetition of Desc fields and sums qty
and create a single row for it in the new table.
How can I do that?
Thanks,
Jim.

Create a Totals query based on the imported (or linked, might be
simpler) text file; to do so, click the Greek Sigma icon (looks like a
sideways M). Group By ID, Desc, and Num, and choose Sum as the totals
function for Qty.

Save this query, and base a MakeTable query on it to create the new
table. I'd actually suggest creating your destination table first,
empty, so you can control the field sizes and formats, and use an
Append query, but if it's a one-time operation a MakeTable will work.
 

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