Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local views created with free tables -- cannot update ta
Message
From
01/05/2002 16:29:51
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
30/04/2002 15:52:21
Angela Haws
Seminole County Tax Collector
Debary, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00651068
Message ID:
00651581
Views:
15
>Hi all-
>
>Recently took the advanced VFP course, and was told that we could update a table through a local view using free tables.
>(He said something about a Data dictionary---not sure about how to do this)
>
>First of all, we have to use free tables because there are several FOX 2.X programs that use the .dbf's that are going to be shared between VFP and Fox2.X...therefore no database container can be used.
>
>Well, I could create a blank .dbc to allow me to create a local view, and when selecting a table for the view, I can choose "other" and select a free table, and the view works...
>but when I choose "Send SQL updates",(oh and I made sure I had the fields marked updateable), nothing is being changed in the live table.
>
>Is this because to have an updateable view, the tables must be part of a .dbc? I hope not....it seems a heck of alot easier to use a local view. If anyone knows how to get around this, please advise.

Does the table have a proper key? There must be something that can be used as a primary key, and your view must know what it is. In this case, it really doesn't have to be a real primary key (there's no such thing in fox2x tables), but your view must be able to locate the record by that field. When you update, it creates an SQL Update command, which can be done in several ways, but each of them needs a key.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform