Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 34106
337
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