Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote View
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00528705
Message ID:
00528829
Views:
14
Hi Cristina,

Updating a view whose data fields come from more than one table can be -lots- of trouble. There can be issues with default values, triggers, primary key violations, null values, and a host of other "gotchas" that will cause you many headaches.

You might handle this more smoothly by creating a second, parameterized view containing the selected row or rows from ONLY the table you wish to update, populating those row(s), and then doing a TABLEUPDATE() on the smaller view. I've had success with this approach in several past apps.

HTH.

>I have a remote view with four tables. I want to update fields from only one
>table. When I insert a new record in my view and then I update with
>Tableupdate, the 1547 vfp error (Cannot insert an empty row from a view into
>its base table) appears. Why?
>
>--
>Regards,
>Cristina Bernárdez
>La Coruña - Spain
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform