merlynsdad
Programmer
I have a number of forms in the db, all of which open another form, then close themselves. The code
is in a button on each form. I have one form, however, where I want the exact same action, but from the form close event instead of a button. So I put this same code in the close form event, but when I click on the X to close the form I'm getting a 2501 error that "the close action was cancelled." Is there something different about the close form event that is causing this or what?
If the square peg won't fit in the round hole, sand off the corners.
Code:
DoCmd.OpenForm "frmA"
DoCmd.Close acForm, "frmB"
If the square peg won't fit in the round hole, sand off the corners.