Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
...uncommitted changes???
Message
From
16/08/1998 19:21:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
...uncommitted changes???
Miscellaneous
Thread ID:
00127263
Message ID:
00127263
Views:
74
I have a view that I am having trouble with. When I attempt to save changes (adding a new record or editing an existing one) I get the error...

Table buffer for alias vpieces contains uncommitted changes.

... this error is hitting on the Requery command... here's the code I have in my save button click method...

SELECT vPieces
BEGIN TRANSACTION
IF ThisForm.AddMode
REPLACE keylink WITH ThisForm.CurrKeyLink
REPLACE created WITH DATETIME()
REPLACE createdby WITH oApp.CurrentUser
ENDIF
=TABLEUPDATE(.T.)
END TRANSACTION
=REQUERY('vPieces')

... where the keylink is the key field in the table. I have tried several versions of this code but it always gives the uncommitted changes error on the requery.

In the DBC I have the Update Criteria on the view set to "Send SQL updates", with the keylink set as the key, all the other fields have update checked, and the remaining settings are set to default.

Any ideas why I'm getting this error?

Thanks!
Mark
Next
Reply
Map
View

Click here to load this message in the networking platform