I'm using DTS to manipulate some data in Access. Today I do this within Access, but I want to use DTS so I can schedule a job to run in the dark of night.
The process I use today is to run a query that appends records to a table. The data contains an Id field that is not unique. I want only the first occurence of the reocrd so I've configured the destination table with the ID as the key so subsequent records with that ID are rejected.
My attempt to do this with DTS failed because the of duplicate keys. Access warns you that the records were not added, but the DTS job stops altogether:
"The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship..."
I've tried to design a query that results in the exact recordset I need, but that has not been successful.
I also looked for a way to get around this in DTS but it seems limited.
If anyone has a creative solution for me, I would be glad to hear it.
The process I use today is to run a query that appends records to a table. The data contains an Id field that is not unique. I want only the first occurence of the reocrd so I've configured the destination table with the ID as the key so subsequent records with that ID are rejected.
My attempt to do this with DTS failed because the of duplicate keys. Access warns you that the records were not added, but the DTS job stops altogether:
"The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship..."
I've tried to design a query that results in the exact recordset I need, but that has not been successful.
I also looked for a way to get around this in DTS but it seems limited.
If anyone has a creative solution for me, I would be glad to hear it.