?
Solved

Visual Basic Run-Time error

Posted on 2000-03-08
2
Medium Priority
?
194 Views
Last Modified: 2013-11-25
I received a run-time when runing a visual basic program which updating SQL database from Access database.

The error message is an follow:

Run-Time error '-2147467259(80004005)'

Insufficient or incorrect key column information, too many rows affected by update.

Many Thanks

Felicia
0
Comment
Question by:felicia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:LorenG
ID: 2599361
Felicia,

My guess is that the sql table you linked in Access does not have a primary key.  If this is the problem, you can fix it by relinking the table in access and making sure you have selected all the primary keys when prompted.

- Loren
0
 
LVL 1

Accepted Solution

by:
Kurvy earned 0 total points
ID: 2599378
Alternatively the key column in sql server could be set to not null and you are trying to pass it null data or the datatype is wrong or the key is set to be unique.  Have you checked that the allow bulk updates box is checked in SQLserver?

Kurvy
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question