The changes you have requested to the table were not successful because
they would create duplicate values....
There must be a hundred posts here dealing with this message, but the one thing they all seem to be missing in response is a way to troubleshoot it. I have a form with a dozen tabs/pages. Each page is basically another table in the db. Some pages have sub forms. When I get this error message, how do I know which table is having the problem, so I can troubleshoot? When navigating from record to record, aren’t all tables that have referential integrity enabled potentially updated? So the problem isn’t necessarily the form/tab/page that I am looking at. It could be any table. I understand what the message is saying. I know about duplicate values and how indexes work. But I don’t know exactly what caused this message. I would like to see the INSERT/UPDATE that was attempted. How do I get that?
For the most part, I would say setting values in the On Current event is not a good idea. BeforeInsert and BeforeUpdate should not be called by navigating in a form constructed in the normal way. I suggest you get rid of the code that sets values and use the Default Values property or only set these values when the user chooses to add a record.