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

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

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

Have a form in 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
    LVL 25

    Accepted Solution

    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

    Hi StuartK,

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


    Author Comment

    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

    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

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Course: Foundations of Front-End Development

    Jump-start a lucrative career in front-end web development, with zero previous coding experience required. This course covers the basic programming concepts and languages required for creating engaging websites from scratch.

    Suggested Solutions

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video discusses moving either the default database or any database to a new volume.

    877 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now