Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Saving New Records Into Access Database for Student Project...

843859Mar 28 2008 — edited Apr 1 2008
Hi, I'm relatively new to java and decided to produce a project using Java, JDBC, SQL & Access.

I can retrieve data from my database, however i am struggling with the saving of new data..

I am using several Jtextfields to input each field, and using a single Jbutton to save the data as awhole record into access.
The Jtextfields contain only integer values, such as IDs and dates..

I have the actionlistener for the button, a dataprocessing class and a databaseconnectivity class that should all link together..

Am i correct in thinking i must use an array to store all data in Jtextfields, before passing it to the dataprocessing class where it is then saved?

Any examples would be very helpful...as i am not very good with arrays by the looks of things!

I apologise in advance if this is posted within the wrong section or is beneath the level often found here..
I am rather desperate however... :o(
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2008
Added on Mar 28 2008
3 comments
443 views