Welcome to Dream.In.Code
Become a VB Expert!

Join 137,264 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,502 people online right now. Registration is fast and FREE... Join Now!




Code to Disable an outlook warning

 
Reply to this topicStart new topic

Code to Disable an outlook warning, How do I disable outlook warning when sending an email from a command

Windmu20
27 Dec, 2006 - 06:28 PM
Post #1

New D.I.C Head
*

Joined: 14 Dec, 2006
Posts: 3


My Contributions
I am very new to visual basic. I spent awhile trying to figure this out. I was able to send the email but I would like to disable a message. It tells me that someone is sending an email on my behalf. I then have to hit yes to proceed. I would also like the command button to go gray when I hit the button. In addition to that, I would like to check a check box. I have searched for the commands, my problem is getting the syntax inbween correct.


Private Sub SEND_Click()

SEND.DisableOOMWarnings = True

DoCmd.SetWarnings False

DoCmd.SendObject acReport, "User request form", "HTML(*.html)", "rdwind@ibtco.com", "", "", "test", "test", False, ""

SEND.DisableOOMWarnings = False

'Requery checkbox to show checked

'after update statement has ran

'and disable send mail command button

checkbox.Requery

checkbox.SetFocus

Send.Enabled = False

End Sub


Thank you Rick

User is offlineProfile CardPM
+Quote Post

rockstar_
RE: Code To Disable An Outlook Warning
29 Dec, 2006 - 01:30 PM
Post #2

D.I.C Head
Group Icon

Joined: 16 Oct, 2006
Posts: 187


Dream Kudos: 275
My Contributions
QUOTE(Windmu20 @ 27 Dec, 2006 - 07:28 PM) *

I am very new to visual basic. I spent awhile trying to figure this out. I was able to send the email but I would like to disable a message. It tells me that someone is sending an email on my behalf. I then have to hit yes to proceed. I would also like the command button to go gray when I hit the button. In addition to that, I would like to check a check box. I have searched for the commands, my problem is getting the syntax inbween correct.

Rick,

Can I ask why you'd want to do this? If the reason is legitimate, I think it's a good idea that you'd want to let your users know that an email is about to be sent with their name on it. If I had a secretary and she started sending out letters with my name on it without telling me, I'd be a little upset. If your reason is not legitimate: "Bad Rick! Bad!" Now go stand in the corner and think about what you did. --ohmy.gif)

rockstar_
User is offlineProfile CardPM
+Quote Post

Windmu20
RE: Code To Disable An Outlook Warning
29 Dec, 2006 - 04:00 PM
Post #3

New D.I.C Head
*

Joined: 14 Dec, 2006
Posts: 3


My Contributions
QUOTE(Windmu20 @ 27 Dec, 2006 - 07:28 PM) *

I am very new to visual basic. I spent awhile trying to figure this out. I was able to send the email but I would like to disable a message. It tells me that someone is sending an email on my behalf. I then have to hit yes to proceed. I would also like the command button to go gray when I hit the button. In addition to that, I would like to check a check box. I have searched for the commands, my problem is getting the syntax inbween correct.


Private Sub SEND_Click()

SEND.DisableOOMWarnings = True

DoCmd.SetWarnings False

DoCmd.SendObject acReport, "User request form", "HTML(*.html)", "rdwind@ibtco.com", "", "", "test", "test", False, ""

SEND.DisableOOMWarnings = False

'Requery checkbox to show checked

'after update statement has ran

'and disable send mail command button

checkbox.Requery

checkbox.SetFocus

Send.Enabled = False

End Sub


Thank you Rick


User is offlineProfile CardPM
+Quote Post

Windmu20
RE: Code To Disable An Outlook Warning
29 Dec, 2006 - 04:05 PM
Post #4

New D.I.C Head
*

Joined: 14 Dec, 2006
Posts: 3


My Contributions
QUOTE(rockstar_ @ 29 Dec, 2006 - 02:30 PM) *

QUOTE(Windmu20 @ 27 Dec, 2006 - 07:28 PM) *

I am very new to visual basic. I spent awhile trying to figure this out. I was able to send the email but I would like to disable a message. It tells me that someone is sending an email on my behalf. I then have to hit yes to proceed. I would also like the command button to go gray when I hit the button. In addition to that, I would like to check a check box. I have searched for the commands, my problem is getting the syntax inbween correct.

Rick,

Can I ask why you'd want to do this? If the reason is legitimate, I think it's a good idea that you'd want to let your users know that an email is about to be sent with their name on it. If I had a secretary and she started sending out letters with my name on it without telling me, I'd be a little upset. If your reason is not legitimate: "Bad Rick! Bad!" Now go stand in the corner and think about what you did. --ohmy.gif)

rockstar_


Rockstar

It is on a company intranet, so anyone using this will be trying to send emails within the intranet and will know they are the sender because they are the one hitting the command button.

Rick

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 07:20PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month