The accurate distances to 120,000 stars were measured by Hipparcos.
http://en.wikipedia.org/wiki/Hipparcos
"The final
Hipparcos Catalogue (120,000 stars with 1 milliarcsec level astrometry) and the final Tycho Catalogue (more than one million stars with 20-30 milliarcsec astrometry and two-colour photometry) were completed in August 1996. The catalogues were published by ESA in June 1997."
In 2011 Gaia will do even better.
"Gaia will compile a catalogue of approximately one billion
stars to
magnitude 20. Its objectives comprise:
- astrometric (or positional) measurements, determining the positions, distances, and annual proper motions of stars with an accuracy of about 20 ľas (microarcsecond) at 15 mag, and 200 ľas at 20 mag
- spectrophotometric measurements, providing multi-epoch observations of each detected object
- radial velocity measurements."
http://en.wikipedia.org/wiki/Gaia_mission