> E AI GALERA BLZ...
> ME AJUDEM AI POR FAVOR, ESTOU FAZENDO UM PROJETO EM JAVA COM O BANCO DE
> DADOS ACCESS, MAS NO MEU BOTÃO
> EXCLUIR ESTÁ DANDO ERRO...
> O ERRO Q APARECE É " ERRO AO EXCLUIR O REGISTRO java.sql.SQLException:
> Column not found"
> SEGUE O CÓDIGO DO BOTÃO EXCLUIR...
> private void JB_ExcluirActionPerformed(java.awt.event.ActionEvent evt) {
> try
> {
> String sql = "Select * from Funcionarios Where Codigo = " +
> TF_Codigo.getText();
> con_dados.executeSQL(sql);
> con_dados.resultset.first();
> String Nome = "Deletar o Funcionario: " +
> con_dados.resultset.getString("Nome" + " ? ");
> int opcao_escolhida =
> JOptionPane.showConfirmDialog(null,Nome,"Exclusão",JOptionPane.YES_NO_OPTIO N);
> if (opcao_escolhida == JOptionPane.YES_OPTION)
> {
> sql = "DELETE FROM Funcionarios Where Codigo = " +
> TF_Codigo.getText();
> int conseguiu_excluir =
> con_dados.statement.executeUpdate(sql);
> if (conseguiu_excluir == 1)
> {
> JOptionPane.showMessageDialog(null,"Exclusão Feita com
> Sucesso");
> con_dados.executeSQL("Select * from Funcionarios");
> con_dados.resultset.first();
> mostrarDados();
> }
> }
> else
> return;
> }
> catch(SQLException erro)
> {
> JOptionPane.showMessageDialog(null,"Erro ao Excluir o Registro " +
> erro);
> }
> }
> ME AJUDEM AI...
> MUITO OBRIGADO...
> VALEU...
> --
> Atenciosamente
> Luiz Carlos Ribeiro
> Cel.: (11) 9287-2277
> Blog: http://luizriber.spaces.live.com
--