I think Access offers you a 'crosstab' query of some sort which will do this - it involves a bit of smoke and mirrors, but you may get it working.
Classically, you have to write the cursor code to loop and add, so if you can't crosstab it, fraid I can't help other than say you've got a couple of frustrating hours ahead - shame, but making tall datasets wide is a perpetual pain