Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1545:Table buffer for Alias contains uncommitted chgs
Message
De
29/05/2002 11:34:53
Angela Haws
Seminole County Tax Collector
Debary, Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Error 1545:Table buffer for Alias contains uncommitted chgs
Divers
Thread ID:
00662535
Message ID:
00662535
Vues:
66
Hi all-
Started using views just recently. I have a candidate key ( it wouldnt let me build a primary key becuase I use free tables, not a database container)and all fields except candidate key are selected as updateable. I have "Send SQL updates" checked and the table that I'm using for the view is has table buffering set to 1. (I had heard that when I tableupdate, to make sure that the table is not buffered when using a view to update- as good advice) In my form, I have the view in the data environment, and all controlsources of my txtboxes set to the view.fieldnames. Under a "save" button I call tableupdate(0). When I try to move to the next record, I get the 1545 error -Table buffer for Alias "Viewname" contains uncommited changes. Im not sure why, because before I select "Next", I "Save" the changes.

So, in my "Save" button click event, I have added REPLACE commands to replace the View.fieldnames with thisform.txtboxs.values.
After the series of REPLACE commands, I tableupdate(0) and it doesnt give me the error anymore.

I didnt think that I would have to use the REPLACE command when I have the txtboxes controlsourced to the view.

Am I going about this all wrong?



Thanks in advance for all your help!
Angie
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform