This article is for those who think Java is difficult.
Today I was taught to connect a Java class file to a Access Database. But Java can't directly connect with MS-Access, it needs a middleware called DSN-Data Source Name(not sure though what its called).
So,first of all,create a database in Access(in my case I named it db1.accdb), and create a table within it(I named it tbl_pinfos) and created 3 fields in it,viz:
1.pid---Number
2.full_name---Text
3.contact_address=Text
Saved it and closed. Now the 'thought difficult' part.
Follow the steps to connect your database with the ODBC.
Click on "Select" Button.
Find the location of the database created in Access, and in the left pane(Database Name), select the database in your database folder. Then click on OK.
Click on OK.