Yes. However you could just fix your programming logic - presubabmy valuesToUpdate is an array longer than 7 values. You need to make sure you have the same number of values to bind to parameters as you have parameters defined in your PreparedStatement.
Thanks but I don't know how I can use the column name instead. I have checked my code fragment and followed it through. valuesToUpdate has 7 values before going into the loop [ December 05, 2006: Message edited by: Patrick Mugabe ]