I am using Office 365
I want te close a report in VBA and use the folowing:
Private Sub Report_Close()
DoCmd.Close acReport, "ROpzoeken Paswoorden"
DoCmd.OpenForm "Menu", acNormal
End Sub
The Close action always gives an error.
I get error 2501 with the info: "action Close is canceled.
Does someone have a solution?
I want te close a report in VBA and use the folowing:
Private Sub Report_Close()
DoCmd.Close acReport, "ROpzoeken Paswoorden"
DoCmd.OpenForm "Menu", acNormal
End Sub
The Close action always gives an error.
I get error 2501 with the info: "action Close is canceled.
Does someone have a solution?