Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating totals in a report...HELP

Status
Not open for further replies.

JennW

IS-IT--Management
Jan 30, 2001
39
0
0
US
I have a table where I need to create totals of data that has been entered in a field.

There are 3 fields. Name, Type, and Number

Name Type Number
Jones Regular 12
Smith Regular 1
Jones Regular 3
Jones Regular2 5
Smith Regular2 2
Smith Regular2 5


I need to be able to have a report show only one Jones and the "type", and a total of the numbers that were associated with the name.

I have tried different types of querys and I sure could use some help.

There are over 100 names with 3 different "types" and about 9000 records with various Numbers.

Any suggestions?

thanks!

JennW
 
Create a query like that:

SELECT MyTable.Name, MyTable.Type, Sum(MyTable.Number) AS TotalNumber
FROM MyTable
GROUP BY MyTable.Name, MyTable.Type;


Jean-Paul
Montreal
mtljp2@sympatico.ca
 
thank you Jean-Paul, but I tried this and it didnt work.

Any other suggestions are appreciated!

thanks!

JennW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top