When using an Access database the user used by the web server IIS (normally IUSR_machinename) must have read/write permissions over the database folder to be able to modify and update the database. Add read/write permissions to correct this error.
If using SQL Server, make sure the database account used has write permissions on all the tables.