hi,
You will require the below line to connect to access database
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=test.mdb;","dba","sql");
//Be careful while using this line. You should copy it exactly
Remaining all you can learn from the tutorials.
thanx for your reply;
but i wrote what u told me,,but theses errors results:
C:\database.java:6: <identifier> expected
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
^
C:\database.java:7: <identifier> expected
con=DriverManager.getConnection
^
2 errors
i found out my mistake,,i have to put theses statemant into method..
i didi that and i have Process complete
without any error.
but when i run the application the following exception is resulted;
JAVA.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]
and some other unknown sympols