Results 1 to 3 of 3
  1. #1
    data808 is offline Noob
    Windows 10 Access 2013 32bit
    Join Date
    Aug 2012
    Posts
    727

    Undo Values On Hidden Form


    Trying to execute an Undo from a cancel button using "DoCmd.RunCommand acCmdUndo" but because the form that I want this Undo to be applied to is hidden, it's not working.

    I think all the DoCmd line needs is a reference to the hidden form so it knows which form to apply the Undo to. Does anyone know how to do that?

    Thanks.

  2. #2
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    try
    Code:
    Forms("YourFormName").Undo
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  3. #3
    data808 is offline Noob
    Windows 10 Access 2013 32bit
    Join Date
    Aug 2012
    Posts
    727
    Quote Originally Posted by moke123 View Post
    try
    Code:
    Forms("YourFormName").Undo

    Worked like a charm! Thank you very much!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 08-07-2018, 05:04 AM
  2. Replies: 7
    Last Post: 03-21-2018, 01:26 PM
  3. Undo in form and subform
    By azhar2006 in forum Forms
    Replies: 7
    Last Post: 09-05-2014, 09:04 AM
  4. Need Help: Form Undo Error
    By RichardAnderson in forum Forms
    Replies: 1
    Last Post: 10-10-2013, 12:41 PM
  5. Replies: 0
    Last Post: 01-18-2011, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums