public Statement conexion()
        {
          try 
          {
            Connection conector = null;
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
            conector = DriverManager.getConnection("jdbc:odbc:bdproductos");
            Statement consulta = conector.createStatement(); 
            return consulta;
            } catch (Exception e) {}
          Statement consulta = null;
         return consulta;
        }