This question has been done to death in the Stock by Attributes support thread, where are references to a solution for the single attribute case that SusieTFTF gives as an example.

Once you move beyond a single attribute per product ... well being basic and being easy aren't necessarily the same thing!