Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Urget !! How to avoid this error message in view
Message
 
À
06/09/2002 16:06:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00697751
Message ID:
00697757
Vues:
22
>hello all
>
>I have a grid based on a view and i get this error message when i updated a duplicate record,
>
>Warning The key defined by the keyfield property for table mydbc!table1 is not unique.
>
>Here is a sample data , key field is SSN
>
>Table1
>SSN
>123456789
>123456789
>987654321
>323552345
>
>Second record is a complete duplicate,so users selects it to delete.i just issue =tableupdate(.t.)
>
>but i get this error message.how to avoid this,any workarounds ???
>
>Txs for any help.

You need to use another key_field, which is unique and cannot be duplicated. Or add code to prevent adding records if they contain SSN already in the table.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform