Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 2072 - how to avoid it
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01091663
Message ID:
01091848
Views:
29
>>Cursor cannot be modified because it contains an unsaved record (Error 2072)
>>The help file states this is caused by movement of the record pointer.
>>
>>I have a view, with optimistic table buffering (5)...
>>I allow users to add a record to a grid. edit in the grid.. and then I let them add another one. This of course moves the record pointer.
>>
>>If the buffering is table optimistic, shouldn't I be able to do this? i.e. add records and save when the user has finished adding the records that they wish to do.
>>
>>
>>What am i doing wrong?
>>
>>TIA,
>>Mike
>
>I think you're changing from buffering 5 to buffering 3 somewhere in the code. Usually it's done in order to index the view. Make sure you're using buffering 5.

Thanks for that suggestion... I checked for that. I watched in the debugger as each line of code executes. I set the buffering for the view in the load event of the form. It isn't changed anywhere else.

Any other ideas?
Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform