I'm trying to update a field in an MS SQL 2005 table from a form in MS Access. I keep getting a Write Conflict but I'm the only one using the db. I get the same error even if I try to update a record in the table without going through the form. I'm the db admin for the database. I can append with no problem. The table has a primary key. Any ideas?
Microsoft AccessMicrosoft SQL Server
Last Comment
WhamMcC
8/22/2022 - Mon
mbizup
If you have bit fields in your table try setting allow nulls to false
WhamMcC
ASKER
You may be onto something but when I attempt to change the data type not allow nulls, I get the following error message:
'Rebates' table
- Unable to modify table.
Cannot insert the value NULL into column 'Prep01', table 'dbSalesInfo.dbo.Tmp_Rebates'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Is this because I have nulls and if so how can I get rid of them?
gnetgnet
Can you initialize the values to spaces if char or 0 if numeric?