D
Dorci
Access 2003 - I copied the code from http://allenbrowne.com/ser-57.html, and
I'm getting the following error message...
"Run-time error '3022'. The changes you requested to the table were not
successful because they would create duplicate values in the inces, pirmary
key, or reltionship. Change the data in the field or fields that contain
duplicate date, remove the index, or redefine the index to permit duplicate
entries and try again."
....on this piece of the code...
.AddNew
![MTNumber] = Me.[MTNumber]
![CustomerID] = Me.[CustomerID]
![CompanyName] = Me.[CompanyName]
![Address] = Me.[Address]
(etc.)
.Update
"MTNumber" is an autonumber and is the indexed primary key. I tried
removing that line from the code, thinking the table would automatically
generate the next autonumber, but that didn't work. Any ideas on how to
duplicate the record without removing primary key?
Thanks, Dorci
I'm getting the following error message...
"Run-time error '3022'. The changes you requested to the table were not
successful because they would create duplicate values in the inces, pirmary
key, or reltionship. Change the data in the field or fields that contain
duplicate date, remove the index, or redefine the index to permit duplicate
entries and try again."
....on this piece of the code...
.AddNew
![MTNumber] = Me.[MTNumber]
![CustomerID] = Me.[CustomerID]
![CompanyName] = Me.[CompanyName]
![Address] = Me.[Address]
(etc.)
.Update
"MTNumber" is an autonumber and is the indexed primary key. I tried
removing that line from the code, thinking the table would automatically
generate the next autonumber, but that didn't work. Any ideas on how to
duplicate the record without removing primary key?
Thanks, Dorci