Well this would top the crown jewel!!! Does any one have a program that lets you enter your Lego pieces and then the program tells you what sets you can build?
Even more advanced would be a program that tells you what you could build given the blocks in any color so you could track down mis-colored bricks.

And ultimate advanced would give you a reference to past/present sets you could purchase to achieve your goal say the latest... USC "Fill in the blank".

I'm sure if this topic has been covered but if it did then this post will be closed with a "Did you not see legomasterforlifeandthensome's post 4 years ago?".

That being said, I don't know of any program like that. Even so... it'd be horribly complex to try and make one. There are thousands of different elements in dozens of colors. Even just taking 8 2x4 bricks can make 102,981,500 different combinations.

Even factoring in the known sets, it'd be a very tall order. You could try it, but that'd be a big database, bigger than even bricklink, since you'd be querying against it._________________Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein

Bricklink would be a good start. The main problem is that part numbers are not associated with a particular colour, e.g. all uses of "Plate 1x4" link to the same part, no matter which colour it has in the set. The information is there, in the set inventory, its just a matter of how to access it.

Excluding colour (and quantities for the moment) something like this ought to be a start:

1. Make a list of all your pieces.
2. For each piece look up the "This part appears in..." and put all the sets in a list.
3. For every set in the set list look up its inventory and then cross-check each piece in your list of pieces. If you do not have the piece, put it on another list together with the set number.

This last list will show all the sets you can't build (and which pieces you are missing for it). Remove all sets on that list from the list you made in step 2 and you are left with the sets that you can build.

I won't bother working this out in any more detail, as it is against Bricklink's Terms of Service to automatically access their database._________________Run, run, as fast as you can...

Are you telling me the IRS,Secret Service and Hardees have a better inventory of stuff than us Lego builders? I could...given the time and school find out the math on this but there are several hundred/thousands of examples of past parts to each set and given the amount of actual sets in each year,color,shape would give this complex community more than it could ever handle before. Would it not be nice to enter all your misc blocks and then be able to see what you could build..if you had the right blocks or right color blocks?

Oh, they absolutely have better inventory stuff. I suppose horribly complex isn't the best description... very, very time consuming is. While it'd be relatively easy to do this with sets... have you tried to look up individual elements on bricklink before? It's tough. Typically, I just have to figure out what set I know has it and go from there._________________Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein