After doing some research on PreparedStatement (I have never used that before, and most of my SQL experience is in ASP) I'd say Dave hit it on the head for you.
A much more simpler solution than what I offered.
And thanks Dave, I'll add that to my
Java bag of tricks that I'm creating.
Steve<br /> <br />No matter where you go, there you are.<br /> <br />"My evil self is at the door, and I have no power to stop it."