Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View updates not working
Message
De
17/10/1999 18:06:11
 
 
À
17/10/1999 15:58:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00277474
Message ID:
00277481
Vues:
23
Hi Mary-Ann,

As Ed points out, the key value for the KeyField is not unique. You see, for a view to update or delete correctly, one field has to be identified as the key field. This field has to be absolutely unique. To save you some time, this also means that you are going to want to use INSERT INTO to prepopulate this field with a unique value when inserting records.

As Ed also points out, if you can create a Primary or Candidate key on the field without an error, it's usable as the keyfield in a view.


>"The key defined by the KeyField Property for table dbc.table is not unique". Seems like a simple message, but I don't really understand what it means.
>
> Get this error when trying to delete or update from the view. The table has one key field that it's indexed on, the view is indexed on the same key field name. Have clicked on the key field on the update tab and those fields to update. Don't understand the problem.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform