Nathan,
My recommendation would be for you to read the article at the first link in my signature line below. Following the recommendations for how to post in that article will probably get you a fully tested answer in the form of code and in very short order. Help us help you.
--Jeff Moden
Change is inevitable... Change for the better is not.