简体   繁体   中英

writing data in access file

i'm developing a system that will take the user input and safe it in access file as database for registration system

 DBClass DB = new DBClass();
    DB.WrieToDatabase(jTextFieldID.getText(), jTextFieldname.getText(), jTextFieldemail.getText(), jPasswordFieldpass.getText(), jComboBoxgendar.getSelectedItem() +"" );

but when i run the code it gives the following error message:

java.sql.SQLException: No suitable driver found for jdbc:odbc:Driver=(Microsoft Access Driver (*.accdb)};DBQ=store.accdb;DriverID=22;READONLY=false} Error: Record could not be inserted into the database

From your Error above ,You are missing a Database driver.Based on the version of MS Access file you are using you have to download a database driver. Here is a link for DB driver for MS Access 2010

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM