Connecting Tech Pros Worldwide Help | Site Map

Append to master replication table

  #1  
Old November 13th, 2005, 02:28 PM
Kurt
Guest
 
Posts: n/a
For some reason I cannot use an append query to append records to a
design master replication table that has the index key on a random Long
Integer. I checked all the text fields in the Master Replication table
to make sure the properties are appropriately set as
Required: No and Allow Zero Length: Yes. Also no violation of unique
indexes.

The Access error message says can't append all the records,
....didn't add 1576 records to the table due to key violations...

INSERT INTO tblMasterRepl ( tblspecies_ID, tblCounty_ID, StatusCo )
SELECT FWS.SpeciesID, FWS.CountyID, FWS.STATUS
FROM FWS
WHERE (((FWS.Match)=False));

Compacting the db didn't work. Any thoughts?

  #2  
Old November 13th, 2005, 02:28 PM
Kurt
Guest
 
Posts: n/a

re: Append to master replication table


Problem solved. A foreign key field in the master table had a default
value which did not ref. a valid item in the link table.
Kurt wrote:[color=blue]
> For some reason I cannot use an append query to append records to a
> design master replication table that has the index key on a random Long
> Integer. I checked all the text fields in the Master Replication table
> to make sure the properties are appropriately set as
> Required: No and Allow Zero Length: Yes. Also no violation of unique
> indexes.
>
> The Access error message says can't append all the records,
> ...didn't add 1576 records to the table due to key violations...
>
> INSERT INTO tblMasterRepl ( tblspecies_ID, tblCounty_ID, StatusCo )
> SELECT FWS.SpeciesID, FWS.CountyID, FWS.STATUS
> FROM FWS
> WHERE (((FWS.Match)=False));
>
> Compacting the db didn't work. Any thoughts?[/color]

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Replication Issue iheartvba answers 30 November 25th, 2008 02:07 PM
Link the FE to the BE using Code and Path/File ApexData@gmail.com answers 7 March 19th, 2007 04:35 AM
Incremental table backup or restore rdemyan via AccessMonster.com answers 2 December 25th, 2006 12:35 PM
Appending data to a master database from another database Parasyke answers 1 November 17th, 2006 04:05 PM