Hello,
I'm almost finished with my latest database, thank you all for your help so far. Just one last issue that I know of.
My form gathers a list of names and other information from the table of visitors that have not yet been approved. At the top of the form is a command button that allows the boss to approve all visitors at once. This simply writes to the table a value of -1 to a checkbox, and works great. Another checkbox on the form writes to the table to change a checkbox to -1 to make them exempt from some requirements, which also seems to be working fine.
My problem comes in when I check the Exempt checkbox, then try to approve all visitors. Everything is writing fine like I want it to, but I get a messagebox that says...
Write Conflict
This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made.
Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back if you decide to make changes.
...Then three buttons to choose from...
Save Record Copy to Clipboard Drop Changes
Copy to clipboard is the default.
I looked this up, and it's saying something about making a change to a form when two forms with the same data source are open, but this is the only form that is opened when I'm testing it out. It also said to add code to the "On Deactivate" property
DoCmd.RunCommand acCmdSaveRecord
but it doesn't change anything.
Another site said to change the Record Locks property to "Edited Record", but then I get a run-time error 3188-Could not update;Currently locked by another session on this machine.
Can someone explain why this is happening? I make changes to forms all the time, and I've never seen this before. If I can't get the message to stop, is there a way to at least select the Copy to Clipboard default with code so the user doesn't even see what is happening?