J.M.
oh..I'm so sorry he was feeling bad....
We found a product called carpet science (Lowe's) that you spray on, then let it set (foam up) then vaccuum up. I find that best results are if I use a scrub brush to get the foaming bubble either into the carpet or fabric.
The last time we had a throw up incident it was milk...so I actually had to do it a couple of times. But you'd never know now.