I am using the Python code below to write to an MSAccess DB through ODBC. I don't get any errors, I know the database is being accessed because it creates a key, but the database isn't close (until I close the Python session) because the key doesn't go away. But no data is getting written to the database.
Can anyone see what I am not?
btw, Customer_ID is an integer.
cnxn = pyodbc.connect("DSN=proddb")
cnxn.execute("INSERT INTO tblParts (Part_Number, Part_Description, Customer_ID, Part_Type) VALUES ('856854-001', 'BASEFRAME', 421, 'NA')")