Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving grid data back to original table
Message
From
09/10/1997 15:03:35
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
 
 
To
09/10/1997 14:54:15
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00053895
Message ID:
00053949
Views:
28
>In order to make a view updateable there must be a primary key on the underlying table. This is required so that the original record can be found and updated by the TABLEUPDATE function. While your view may consist of fields drawn from multiple tables, you may only wish to update one table from the view. You do this by selecting only the fields that are made updateable. When it is time to update, you can issue a tableupdate command.
>
>In the update criteria tab, you mark the fields you want to make updateable, and also the fields that are part of the primary key of the underlying table.

Thanks Bob, that's the best explanation I've read anywhere ;). I'm going back to look at my views and see if I can get some key fields in there. How does this work when you're using other views as data sources? Are the keys the ones from the original tables that created the first views?

I guess I'm thinking you join Table1 and Table2 to make ViewA, then join ViewA and Table3 to make ViewB. Would the key fields be fields from the Tables?

Mandy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform