I have an error using uCanaccess to retrieve my database which I have saved in my desktop.
My code is below:
package Week11Package;
im
Well, first, import your libraries(the jar files in lib folder). http://sourceforge.net/projects/ucanaccess/files/UCanAccess-2.0.9.1-bin.zip/download
Then check this out. This might help.
Connection a = DriverManager.getConnection("jdbc:ucanaccess://C:\\Users\\Vince\\Desktop\\Teams.accdb");
Statement s = a.createStatement();
String sqlQuery = "SELECT PlayerID, PlayerName, TeamID " + "FROM PLAYER"+"'";
ResultSet rs = s.executeQuery(sqlQuery);
while(rs.next()){
System.out.println("Connected to DB & found Data!!!");
}