Write Conflict - tried everything

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am getting a write conflict and have tried everything under the sun and
can't figure out why.

I get the error everytime I add a record to the subform and try to move to
the next record in the subform. The only thing that automatically updates is
a field that sets the Envron("UserName") and a timestamp. I have added.
If me.dirty = true then
me.dirty = false
End If

on both the OnDirty event of the main form and the subform. The
relationships are set (one to many).

There are bit fields, but those all are set to have a default of 0.

I can't think of anything else to try - PLEASE HELP
 
I am getting a write conflict and have tried everything under the sun and
can't figure out why.

I get the error everytime I add a record to the subform and try to move to
the next record in the subform. The only thing that automatically updates is
a field that sets the Envron("UserName") and a timestamp. I have added.
If me.dirty = true then
me.dirty = false
End If

on both the OnDirty event of the main form and the subform. The
relationships are set (one to many).

There are bit fields, but those all are set to have a default of 0.

I can't think of anything else to try - PLEASE HELP

What are the Recordsource properties of the form and the subform? A write
conflict suggests that you have two operations (a form and a subform, a form
and some code, other possibilities) attempting to update the same record.

John W. Vinson [MVP]
 
Yes, about 1 am I remembered that I had put a trigger on one of the tables
for auditing purposes - DUH. Fixed the trigger and now all is fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top