.Undo, .Edit, .Update, .AddNew Inconsistencies - freaking out! 
Author Message
 .Undo, .Edit, .Update, .AddNew Inconsistencies - freaking out!

For some reason I am experience anomalies with VB that should not be

I have a Class Module that controls all of the enabling, disabling, locking
and button clicks of a form

All of the buttons are used for Save, AddNew, Edit, Undo, Delete, etc.

When I invoke the .Update, or .Undo methods and then immediately hit the
AddNew button (.AddNew method), the screen should change to a whole bunch of
blank text boxes, etc.   Instead it's as if it goes into Edit Mode on
whatever record was the previous record to the one that had the bookmark
when the AddNew Button was pressed.

On top of this my button array does not update properly so all of my
enabling and disabling is screwed up, which doesn't make sense because the
array's state is hardcoded based on the EditMode of the system - which says
that it is in 'dbEditAdd' mode.

If I then invoke a .Move method and then hit AddNew, everything works fine.

In summary, the AddNew method invoked directly after a .Undo or .Update
method does not function properly.

This identical Class Module worked fine in two other projects.
Additionally, I have stepped through every bit of code before and after the
invocation of all these methods and the anomaly occurs immediately after and
before any other code is executed.



Kurt Miller
RDMA Development Team
RDM Associates
(800) 427-5097

Sun, 12 May 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Update or CancelUpdate without Edit or AddNew

2. ado.net - addnew, edit, update, delete

3. how i can use the dbgrid with database {edit ,addnew,update or delete the data}

4. Help with DAO AddNew / Edit And Update in VB 4

5. Confusion with ADDNEW, EDIT, UPDATE

6. How in the &^#$&%#^%@# do you kill or stop or undo a started .AddNew event

7. How to Undo an AddNew

8. "Undo"ing edited records

9. Editing a text box and using undo

10. vb6 rich edit Undo code

11. Rich Edit Undo/Redo

12. Undo in Masked Edit Control


Powered by phpBB® Forum Software