Link to home
Create AccountLog in
Avatar of schmir1
schmir1Flag for United States of America

asked on

me.undo versus RunCommand acCmdUndo

What is the differences, advantages, and disadvantages between Me.Undo and RunCommand acCmdUndo?  I'm using both in my code.
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of schmir1

ASKER

Do you know the VBA command for RunCommand (acCmdSaveRecord)?
The accepted method is this:

If Me.Dirty Then Me.Dirty = False

Avatar of schmir1

ASKER

That will save the record?
If it's dirty, yes ...
Avatar of schmir1

ASKER

Excellent solution.
Avatar of schmir1

ASKER

You are good.  I would never have suspected that setting "Me.Dirty" = false would save the record.  Thanks for your help.