Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate not updating/ Local Views/ Update Conflict
Message
From
05/07/2003 08:00:01
 
 
To
04/07/2003 15:44:56
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00807074
Message ID:
00807159
Views:
22
Hi John

>My problem is that if I try to edit that particular product/record again from within the Production screen VFP crashes because the TABLEUPDATE() failed and I receive an "Update conflict" error message?
>
>Does anyone know why this is going on?

Are you re-querying the view after the insert?

If you have default values being inserted in the tables (like a primary key), the view will not have that value and so when you try and update it, VFP sees a conflict because the table has a value that is not in the view.

Use the REQUERY( '[viewname]' ) function to refresh the view after an insert to ensure that the view is properly synchronized with the table
----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform