zelarra821
Registered User.
- Local time
- Today, 04:53
- Joined
- Jan 14, 2019
- Messages
- 835
Hello.
I am trying to close a form from the Form_Load event when a boolean variable is True.
If I put this:
I get the following error:
2585
This action cannot be executed while a form or report event is being processed.
Therefore, I wanted to know if there was someone who could guide me on how to do this.
Thank you very much.
I am trying to close a form from the Form_Load event when a boolean variable is True.
If I put this:
Code:
Private Sub Form_Load()
If Cerrar = True Then DoCmd.Close
End sub
I get the following error:
2585
This action cannot be executed while a form or report event is being processed.
Therefore, I wanted to know if there was someone who could guide me on how to do this.
Thank you very much.