Connecting Tech Pros Worldwide Help | Site Map

Append to master replication table

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:28 PM
Kurt
Guest
 
Posts: n/a
Default Append to master replication table

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, 01:28 PM
Kurt
Guest
 
Posts: n/a
Default 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]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.