This discussion is archived
0 Replies Latest reply: Jul 7, 2008 9:48 AM by 807581 RSS

TextField

807581 Newbie
Currently Being Moderated
Hi,

I am very new in Java; I retrieved a field value from MS Access and displayed on a Texfield; now when I modify the content of the Textfield and try to update it in MS Access, I still get the original value of the MS Access field value; not the changed value(ename value in the Access table is Joe when change it to Jack from Textfield the value of Joe is still there). Please help.
Thanks;

class Tabsample extends connecty {

fnamepp=fnametxt.getText();
}

class Connecty extends JPanel {

public fnamepp;

pname2= fnamepp;


String sql = "UPDATE baltimore SET ename = '" + pname2 + "' WHERE lastname = '" + tab3.para1 + "'";
}