File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes jdbc and gui Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc and gui" Watch "jdbc and gui" New topic

jdbc and gui

kelly devon
Ranch Hand

Joined: Apr 15, 2004
Posts: 77
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));


Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33107

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');

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: jdbc and gui
It's not a secret anymore!