Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Key column information is insufficient or incorrect ...
Message
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Key column information is insufficient or incorrect ...
Divers
Thread ID:
00766538
Message ID:
00766538
Vues:
52
Hi,

I'm getting an error that is driving me nuts. In the following code, I have two recordsets (Access tables) open - the code simply loops through one recordset (rsExpiry) and for each record attempts to find a matching record in rsMappedDescriptions - if it finds it, the field 'bcImcDescription' is updated in rsExpiry.

When it gets to the line of code to update rsExpiry - I get the error message:
"Key column information is insufficient or incorrect.  Too many rows were affected by the update".
I'm not sure why I'm getting this error message - I've got the exact same code with different recordsets working in other parts of my app - any ideas?
Do While Not rsExpiry.EOF
        
        rsMappedDescriptions.MoveFirst
        rsMappedDescriptions.Find "CTIProject =" & Trim(rsExpiry!Property_ID) & ""
        If Not rsMappedDescriptions.EOF Then
            'update the Property name field in rsProperty
            With rsExpiry
                !bcImcDescription = rsMappedDescriptions!bcImcDescription
                .Update   '** HERE IS WHERE THE ERROR OCCORS **
            End With
        Else
            With rsExpiry
                 !bcImcDescription = "NOT FOUND IN MAPPING TABLE"
                .Update
            End With
        End If

        rsExpiry.MoveNext
    Loop
Al Williams

Anola MB, CANADA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform