Solved

Visual Basic Run-Time error

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to mongodb 2 83
Using an encrypted  value to decrypt and display contents in vb6 9 51
VB6 ListBox Question 4 42
C# LINQ ForEach() question 6 28
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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