JDBC driver MS Access connection

后端 未结 9 1869
执念已碎
执念已碎 2020-12-09 06:10

I want connect my MS access file with Java GUI program,but I have problem with connection....

I have Windows 7 64b, and ms office 2007. When I opened the ODBC driver

9条回答
  •  爱一瞬间的悲伤
    2020-12-09 07:10

    You just missing something in your code right here :

    db ="JDBC:ODBC:Driver=Microsoft Access Driver (*.mdb, *.accdb); DBQ="+path;
    

    You need to add {} between Driver= and )=; . Like this Below

    db ="JDBC:ODBC:Driver={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ="+path;
    

提交回复
热议问题