Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc and gui

 
kelly devon
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im getting myself confused. i have a form gui and want to send info
on the form to the db using acess db with sql as the communication link
do i use the name of field in the db to send the info or the name of the
strings in my programsay i have something like the one below
name(string in my program used to retrieve the info on gui) = nametext.getText();
INSERT INTO borrow(db acess name)VALUES('yourname'(ie d db field name));

HELP!!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kel,
You have it right. Just putting into my own words to make sure we are thinking the same thing:

INSERT INTO table(db_field_name)VALUES('value from form');
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic