473,395 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Key violations when running mdb query against linked SQL

I have an MDB on my PC with 3 linked tables to a SQL database. I only have
permissions on the SQL db to insert and delete records.
The linked tables are LnktblA, LnktblB, LnktblC and the main MDB tables are tblA, tblB, tblC. is (<-- one to many --oo)

The relationships in SQL LnktblA<----ooLnktblB<----ooLnktblC.
The relationships in mdb tblA<----ootblB<----ootblC.

All relationships have: (SQL and MDB)
Enforced relationship for replication
Enforced relationship for INSERTs and UPDATEs

I can run an Append query from tblA into LnktblA without any problems. Once I try to run an Append query from tblB into LnktblB I run into "key violations".
Basicly trying to make the linked tables from SQL hold the same data as the main tables in my MDB. The main tables in the MDB have enforced relationship and work perfectly.

So why can't I update the linked tables from the SQL db?

Thank you.
Sep 18 '06 #1
1 3625
BoxTop
12
Hi Jason

The error you are seeing "key violations" relates to the primary key in the table you are trying to update. Have a look at that table and find the primary key field. Your update query is trying to write data into this field that either already exists, is null or violates the uniqueness (is that a word?) of the field. Remember in a primary key field every value in this field must be unique.
Sep 22 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gary | last post by:
I am having a problem executing long running queries from an ASP application which connects to SQL Server 2000. Basically, I have batches of queries that are run using ADO in a loop written in...
1
by: annie | last post by:
Hi all, I have recently ported my Access 2000 app to SQL Server, keeping the Access client as the front end using linked tables. I am also using triggers on my SQL tables to trap orphan...
1
by: Mike Ridley | last post by:
I am trying to create a new query using 3 linked tables. As soon as I add the third table to the design grid Access crashes. I have looked in the newsgroup and find that there have been problems...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
3
by: mnjkahn via AccessMonster.com | last post by:
I'm running Access 2003, modifying a query that has over 45 fields. When I right click on the field name in Query Design View, and then click Build, Access crashes before the Build window...
11
by: gnortenjones | last post by:
I have a linked table (to an oracle db), and I am trying to run a simple update query against it to change some data, but I am getting the following error: "...didn't update 0 fields due to a type...
1
by: stubailey | last post by:
Hi, I am having real problems with timeout on queries when I specify a server and database name. i.e. INSERT .. SQLSERVER1.DATABASE1.DBO.TABLE1 SELECT .... FROM SQLSERVER1.DATABASE1.DBO.TABLEX ...
10
by: MeeMee | last post by:
Hi I have a problem appending data into an oracle table from access. I imported the new data from an excel sheet into a table in access and useed an append query to add the data into a linked...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.