Glad to hear that it worked for you.
A side-benefit of using PreparedStatements is potentially faster execution.
The database is sometimes able to cache your SQL statements, and if they were "prepared", then the database has less work to do because it no longer has to check the SQL for validity (make sure the tables & columns exist, make sure the syntax is correct, etc) prior to execution.
It's not as fast as a stored procedure would be of course, but it's still a nice benefit to have. ;-)
Chip H.
____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first