Link to home
Start Free TrialLog in
Avatar of deanlee17
deanlee17

asked on

Disable warning message when sending email via VBA

Hi All,

I have VBA code to send an email from within Access, but I get the warning message 'A program is trying to automatically send e-mail on your behalf'

Is there anyway to disable this? The database will be used by multiple users so any third party software installed on my machine does not solve the problem for other users.

Thanks,
Dean
Avatar of xmlmagician
xmlmagician
Flag of United Kingdom of Great Britain and Northern Ireland image

If you use macro:
Setwarnings false

In VB:
Docmd.Setwarnings False
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if they do not work there are 3rd party tools that automatically can click yes for you
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deanlee17
deanlee17

ASKER

Hi guys,

Thanks for all the replys. Matthewspatrick: what is the CDO technique then? I want to avoid third party software as it was my understanding i would have to go round and install it on each machine?

Thanks,
Dean
Ah thanks cap, didnt see your link before i posted....
@matthewspatrick it was not mentioned in the original question anywhere so i thought that might do it. As long as Dean gets some help is all good :)

No cap, Access 2003.
Thanks Guys