Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with updatable view
Message
De
19/11/1998 16:36:35
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem with updatable view
Divers
Thread ID:
00159538
Message ID:
00159538
Vues:
59
I have a local view that pulls in information from 2 tables - one a data table and the other a code-lookup table. The SQL looks something like this:

CREATE SQL VIEW MyView AS ;
SELECT MyDataTable.*, MyCodeTable.CodeDescription ;
FROM MyDataTable ;
LEFT OUTER JOIN MyCodeTable ;
ON MyCodeTable.CodeValue=MyDataTable.CodeValue

There is a KeyField set in MyDataTable and all the fields are marked as Updatable EXCEPT the CodeDescription field. When I delete a record in the view and issue a TableUpdate(), I get an error saying that 'No key columns specified for the update table "MyCodeTable". Use the KeyFieldList property of the cursor (Error 1492).' But I don't want to update MyCodeTable! What am I doing wrong?

Thanks,
Elyse Pomerantz
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform