Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle write conflicts in a multi user environment

Status
Not open for further replies.

Jedi420

Programmer
Jun 21, 2002
184
US
Hello,

I have a split multi-user DB in Access 2000. I'm usind edited record-locking and as far as I understand it, if two people are editing the same record, it will save the changes of whoever does so first and the second person who tries to change will get a write conflict error with the options to 'Save Changes', 'Copy To Clipboard', and 'Drop Changes'(there is no error #).

Testing this out on two machines, when I get the write conflict as the second person to update the record, I found that if I choose 'Save Changes', it appears to have saved my changes, but when I try to change records (using DoCmd.goToRecord), nothing happens. So I try to PgUp or PgDn and I get a message (not an error) from Access saying "The record cannot be deleted or changes because table 'TABLENAME' contains related records". This makes no sense to me since TABLENAME has nothing to do with the record being updated except for its key (The Table the form is based off and TABLENAME have a one-to-many relationship, respectively).

What I really want to be able to do is give the option to the second person who updated to truly save their changes if they feel so inclined. I would also like to get rid of the write conflict message in some way for it seems to really screw things up for me. I've read every post here almost on record-locking and write-conflicts and except for maybe editing my registry, I have no idea why it wont accept 'Save Changes' as an acceptable choice. I would really appreciate any help anyone had to give on this subject. Thanx. (^_^)


-Jedi420

A man who has risked his life knows that careers are worthless, and a man who will not risk his career has a worthless life.
 
Ah, a sort of solution from my self, though I'm sure there's more to me not being able to save changes than this. Forms also have a record-locking property that overrides the DB's settings. I had no-locks set on the form so that's why I was getting write conflicts. Set it to edited. Now we're ok (^_^). Though if you have any idea why I couldnt save changes when I had No Locks enforced, please feel free to post.

-Jedi420

A man who has risked his life knows that careers are worthless, and a man who will not risk his career has a worthless life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top