Apologies in advance for what is probably a simple question. I'm getting up to speed with our organization's database programming after the departure of our database administrator.
We have an existing form in Access that we have been using to populate an existing sql table. I need to add a new Yes/No field to the table and a new checkbox to the form in order to populate the field. Adding the field and checkbox was straightforward and I made sure that the default value of the field was 0.
Unfortunately, whenever I select a record, check the new box and try to close the form, I get the "Write Conflict, This record has been changed by another user...." error.
I've searched the forums and there appears to be some AfterUpdate code that I can use, but I'm not really sure where this should be added. Using the code, I've created Event Procedures for both the checkbox and for the form itself, but neither seem to eliminate the error.
I have a feeling that I'm missing an obvious step.....Any ideas?
Thanks.
edited to add: the form actually contains multiple subforms, which probably explains WHY this is happening.
We have an existing form in Access that we have been using to populate an existing sql table. I need to add a new Yes/No field to the table and a new checkbox to the form in order to populate the field. Adding the field and checkbox was straightforward and I made sure that the default value of the field was 0.
Unfortunately, whenever I select a record, check the new box and try to close the form, I get the "Write Conflict, This record has been changed by another user...." error.
I've searched the forums and there appears to be some AfterUpdate code that I can use, but I'm not really sure where this should be added. Using the code, I've created Event Procedures for both the checkbox and for the form itself, but neither seem to eliminate the error.
I have a feeling that I'm missing an obvious step.....Any ideas?
Thanks.
edited to add: the form actually contains multiple subforms, which probably explains WHY this is happening.
Last edited: