Trying to insert some values in a Microsoft access database using java.
I can an error however,
java.sql.SQLException: [Microsoft][ODBC Drive
At first make sure you can access that database via ODBC. Make DSN in odbcad32
for both 64 and 32 bit systems. Then as JDBC connect string use: jdbc:odbc:[CreatedDSN]
. If you cannot connect to Access in 64 bit version of odbcad32
then make sure it works in 32 bit version of odbcad32
and make sure you use 32 bit version of Java.
Also have a look at other responses to: Can't connect to MS Access DB with Windows-64bit
Especially interesting is link to: http://www.selikoff.net/2011/07/26/connecting-to-ms-access-file-via-jdbc-in-64-bit-java/