Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


MoveNext : "Key column information is insufficient or incorrect" error

Posted on 2004-10-21
Medium Priority
Last Modified: 2010-04-24

First of all, thanks for clicking and simply reading this post.

Have a form in vb.net that contains the following:-
- 1 classic Ado control(called ADODC14) bound to a TABLE(called Tbl_Variations)
- several Textboxes bound to different FIELDS within the TABLE  

The TABLE is in Access 2000 and contains :-
- zero - several records in the TABLE. (Depends upon situation)
- contains NO PRIMARY KEY (but each record has a guarenteed VARIATION NUMBER that is generated at runtime before a new record is added to the table.
 - Boolean (Yes/No) DataTypes fields bound to Textboxes. This simply populates the textboxes with True/False/"" depending if the field value is Ticked/Not Ticked/DBNull
- Text DataTypes fields bound to Textboxes

Want to move between RECORDS in the TABLE if several records exist.

Using Adodc14.Recordset.MoveNext , .MovePrevious to tranverse between records

This error happens sometimes upon MoveNext, MovePrevious, but fails upon transitions between CERTAIN records.

For Example:

TABLE contains several variation number (3,5,7,9,12,17)

MovePrevious works fine EVERYTIME going from 17 to 12
MovePrevious fails EVERYTIME going from 12 to 9 giving the error message
"Key column information is insufficient or incorrect. Too many rows were affected by update."

Anybody know why this is?? You thoughts would be most appreciated.


Question by:StuartK
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
  • 2
LVL 25

Accepted Solution

RonaldBiemans earned 750 total points
ID: 12369029
The reason you get this error is because you don't have a primary key, add a primary key to your table
LVL 25

Expert Comment

ID: 12369087
Hi StuartK,

Is there a special reason you are using the "old" adodc instead of the new ado.net.


Author Comment

ID: 12369109
Just found that out myself. Infact I came back to Delete the post before anybody answered. Guess I was too late!!

Thanks for letting us know Ronald.

It's Typical, I've been fighting with this for a couple of hours, and as I spend time to explain on EE, within 10minutes I've sorted myself.


Author Comment

ID: 12369145
Hi Ronald,

Old classic Ado control.

We have 100+ forms that were converted over from VB6 and it did so by creating the classic ADO control in vb.net.

We have kept it that way until we can buy enough time to convert over to ADO.NET. That is our intention. A big job, and it'll involve changing the architecture of how the code works.

So in short it's a legacy of our old system at the moment.


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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

618 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