I have a question about something I'm about to start doing. I'm not exactly sure about one thing. I have a table with rows of groups in it. Each group has a Group Number and a package and a package2 field. I'm going to want to go through each row and find all the groups that have matching Group Number and Package 2's. That mean's I need to combine those rows. There could be 2 rows or 3 rows that need to be combined.
I feel like if there's 2 rows it won't be a problem because I can just use 2 recordsets going through from top to bottom on the first recordset, and using the 2nd recordset to do a FindLast and then performing all the math necessary to combine the 2 records into 1 row in a new table. The problem is when there's 3 records, I don't know how I'll know if there's 3 and if there are how to find all 3 and perform the math to combine them?
What would the best way be to do this?
I feel like if there's 2 rows it won't be a problem because I can just use 2 recordsets going through from top to bottom on the first recordset, and using the 2nd recordset to do a FindLast and then performing all the math necessary to combine the 2 records into 1 row in a new table. The problem is when there's 3 records, I don't know how I'll know if there's 3 and if there are how to find all 3 and perform the math to combine them?
What would the best way be to do this?