I have tried every possible way of connecting the database to the program, but its just not happening! Help me please :(
final static String fileName ="Netlync.mdb";
static{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+fileName;
con = DriverManager.getConnection(url,"","");
}catch(Exception exx){
exx.printStackTrace();
}}
private static Connection con;