CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Undo an "Add New" action

    Hi:
    this may be a very simple question. I´m using a command button to Add a new record to
    a table. If I click the Add button and then I want to go to the previous record without saving the new
    record, I get an error message. Something like "The action was cancelled by another ......".
    Is it possible to cancel an AddNew action without saving the new record and go to the previous
    record? Thanks.


  2. #2
    Join Date
    Jul 1999
    Posts
    104

    Re: Undo an "Add New" action

    Which command are you using?
    have you tried me.undo?


  3. #3
    Join Date
    Apr 1999
    Location
    Michigan, USA
    Posts
    115

    Re: Undo an "Add New" action

    I believe that the CancelUpdate method is what you are looking for.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured