>>I made two similar apps, each with a data display form created with the one-table wizard. I then replaced the buttonbar with my own modified version. As far as I know, I didn't change any code related to table buffering. Each buttonbar has a Save and Revert button using TableUpdate and TableRevert. In app#1 they both work. In app#2 the Save works but Revert gives a "table buffering must be enabled" error. I discovered that the wizard never put a CURSORSETPROP command in, so I thought, fine, I'll put one in. But I wonder: Why do both Save and Revert work in App#1, and why does Save work in App#2?
>
>Sounds strange...I had something similar. turns out that I had one of the tables missing in the dataenvironment in the second form. Once I added it, the tablerevert worked just fine....
>
>Bill
Both apps have the appropriate table in the data environment. But I thought of a couple of other clues. 1. If the program crashes on the Tablerevert, the changes or added record are saved. That makes me think that the Tableupdate command isn't really doing anything, although it executes without error in App#2. I'm not sure if this is true in App#1. 2. The wizard uses APPEND BLANK rather than INSERT - SQL.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement