Hi,
I would like to send an email with the following code:
My question is: When I click "No" on the message box "A program is trying to automatically send e-mail on your behalf. Do you want to allow this?" I get a runtime error (2293: sending emails for Access can't send this e-mail message). How could I disable this runtime error message and put another messagebox made by me (I know little about error handling)?
Please help. Thanks.
I would like to send an email with the following code:
Code:
DoCmd.SendObject , , , strTo, , , strSubject, strText, False
My question is: When I click "No" on the message box "A program is trying to automatically send e-mail on your behalf. Do you want to allow this?" I get a runtime error (2293: sending emails for Access can't send this e-mail message). How could I disable this runtime error message and put another messagebox made by me (I know little about error handling)?
Please help. Thanks.