问题
My Java application works well on two of my colleague's computers, however it will not run on mine.
The application reads a spreadsheet, creates tables in access from it and then compares them. The application is able to read and create the tables, but will not compare them.
The error I am getting is
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Undefined function 'replace' in expression.
I have read the other threads on this but wasn't able to gain much insight. Since we know the code works, is there something I can check on my machine that might be preventing this from working?
Any help would be greatly appreciated.
// Connection Code //
Connection dbConnection = null;
String ACCESSDB_Driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String connURL="jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" + databasePath.trim() + "\\" + accessFileName.trim() + ".accdb;";
回答1:
The answer to this question was I was using Microsoft Access Driver (*.mdb, *.accdb) 12.x instead of 14.x
来源:https://stackoverflow.com/questions/45242437/java-application-undefined-function-replace-in-expression