Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Views
Message
From
13/10/1999 17:17:28
 
 
To
13/10/1999 17:06:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Views
Miscellaneous
Thread ID:
00276042
Message ID:
00276073
Views:
22
The controls on your form should be bound to the view fields. APPEND BLANK when inserting a new record and TableUpdate() or TableRevert() when you are done.

Like I said, if you need an updatable view, then you need to include the PK. Make sure that in the Update Criteria tab of the view designer you check the PK (the little key) and all fields that are updatable (the pencil). Don't forget to check the "Send SQL updates" also.

For fields that are not in the view, you can define a default value in the table designer.

HTH
>If I have a form from which I want to enter a new record in the parent and child tables, should the objects on the form have sources that are memory variables from like, scatter memvar blank, or should they be fields from the views, like append blank and then use the view.field? If I try to use view.fields, it seems there is a problem updating all the tables and it has to do with the primary field (I think).
Previous
Reply
Map
View

Click here to load this message in the networking platform