I was mistaken on the primary key. This table does not
have a primary key. It is an AutoNumber field. However,
it does not create the duplicate until a query runs moving
the records into an Archived table where the corresponding
field is not an Autonumber (It is just a number field).
The records are added to this table one of two ways: 1. a
form within this database or 2. a form from a separate
database that has links to the Main Database.
Is this enough info?
Which table is getting the duplicates? If it's the table with the
autonumber, are you getting exact duplicates (i.e. the autonumber
value being reused), or data duplicates (the records differ only in
the autonumber)? You say that you have "a form from a separate
database that has links to the Main database" - please explain; is the
database where the table is getting dups the "main database", and is
this Form bound to that table?
There is nothing in what you describe which would *prevent* duplicates
from being added; Access will not take any action to prevent
duplicates unless you set up something to do so (a Primary Key, which
every table should have; and/or a unique Index; and/or VBA code on the
Forms to check for duplicates before they are added).