Skip to content Skip to sidebar Skip to footer

Python Insert Data From Qtable Widget Into Ms Access With Qsqldatabase

This is what I have so far: def save_invoice(self): con = QSqlDatabase.addDatabase('QODBC') con.setDatabaseName('C:/Users/Egon/Documents/Invoice/Invoice.accdb') # Op

Solution 1:

Try using QSqlDatabase.commit() instead of con.commit().


Post a Comment for "Python Insert Data From Qtable Widget Into Ms Access With Qsqldatabase"