RichardBott
MIS
During the entry of data in a custom form, rather than letting Access XP add a new record when it thinks it needs to, I have provided a [New Record] button. This has code that INSERTs a new row into a table looking after all of the non-duplicate and non-null conditions. When I try to navigate off of this record, I get the Access error ".... changes were not sucessful because they would create duplicate values in the index, primary key or relationship...". I have a unique key primary constraint on the base table.
Is this happening because Access doesn't realize I have inserted the record in the subroutine associated with the [New Record] button and is trying to add it itself?
If this is the problem, how can I 'tell' access that I have added the record so that it doesn't try to add it a second time?
Thanks for any help you can give...
RjB
Is this happening because Access doesn't realize I have inserted the record in the subroutine associated with the [New Record] button and is trying to add it itself?
If this is the problem, how can I 'tell' access that I have added the record so that it doesn't try to add it a second time?
Thanks for any help you can give...
RjB