Simple Base Form with just a Button, nothing else. Button click runs the Macro below which should close the form.
Sub CloseForm(oEvent)
oForm = oEvent.Source.Model.Parent
MsgBox oForm.Name
oForm.close
End Sub
The message box displays the correct Form name but the Form does not close and remains active and the Button can be clicked repeatedly. There are no Basic errors. Tried also close() and close(True) with same results. Xray shows that close is a valid method for the Form. Why does it not work?