Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with updating a local view
Message
From
19/11/1998 16:42:56
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem with updating a local view
Miscellaneous
Thread ID:
00159543
Message ID:
00159543
Views:
49
(Sorry - this was posted under 'Chatter' by mistake!)

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
Next
Reply
Map
View

Click here to load this message in the networking platform