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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort Sum in Access VB, I/O troubles

Status
Not open for further replies.

superman75075

Technical User
Jun 7, 2004
2
US
I am using Access 2000. I am doing some calculations in a recordset that give me the following output:

Plan(=rs(0)) Gender(=rs(1)) C1(=rs(2)) C2(=rs(3))
------------ ----------- ----------- -----------
AAA1 Male 5 4
AAA1 Male 2 1
AAA2 Female 8 7

But I really need it to sum down to 2 rows:

Plan(=rs(0)) Gender(=rs(1)) SumOfC1(=rs(2)) SumOfC2(=rs(3))
------------ ----------- ----------- -----------
AAA1 Male 7 5
AAA2 Female 8 7

Is there any way to run a query against my recordset & use "Group By"? Or is there any way to create another record set that opens the first record set using a group by statement? Is there an array command that would do this?

Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top