diff --git a/client/src/org/compiere/grid/ed/VAccountDialog.java b/client/src/org/compiere/grid/ed/VAccountDialog.java index 5a320a1231..51eab6b2dc 100644 --- a/client/src/org/compiere/grid/ed/VAccountDialog.java +++ b/client/src/org/compiere/grid/ed/VAccountDialog.java @@ -889,8 +889,9 @@ public final class VAccountDialog extends CDialog int i = 0; try { - java.sql.Statement stmt = DB.createStatement(); - i = stmt.executeUpdate(sql.toString()); + java.sql.PreparedStatement stmt = DB.prepareStatement(sql.toString(), + ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE, null); + i = stmt.executeUpdate(); stmt.close(); } catch (SQLException e)