Solved

Visual Basic Run-Time error

Posted on 2000-03-08
2
188 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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

749 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