This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hello, i am trying to update MS Access database from JTable while editing in cell, so setValueAt() overriden as shows below. First update it works , but on second following exception appears:
[Microsoft][ODBC Microsoft Access Driver]Prepared statement not a cursor-specification <code> public void setValueAt(Object value, int row, int column) { String query = null; try { String tableName = metaData.getTableName(column+1); if (tableName == null) { System.out.println("Table name returned null."); } String columnName = getColumnName(column); query = "update "+ "EMPLOYEES_7"+ " set "+columnName+" = "+dbRepresentation(column, value)+ " where inx = " + row; System.out.println(query); querry = null; statement.executeUpdate(query); } catch (SQLException e) { System.err.println(e.getMessage()); System.err.println("Update failed"); } Vector dataRow = (Vector)rows.elementAt(row); dataRow.setElementAt(value, column); } <\code> Please help V