Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 11th, 2006, 01:55 PM
ManningFan
Guest
 
Posts: n/a
Default Sending email using VBA - One Final Piece

I've got the program working fine, it sends email when it needs to and
all and it sends it with the proper subject, body and to the proper
email address.

The one last thing is that every time it needs to send an email, I get
an email form that just stays there waiting for someone to press the
"Send" button.

Is there any way to programatically get around this? I may be sending
hundreds of emails at a time and I'd rather not have to click on the
button for each one. I tried SetWarnings and that didn't do it. Any
help would be appreciated.

  #2  
Old December 11th, 2006, 02:05 PM
ManningFan
Guest
 
Posts: n/a
Default Re: Sending email using VBA - One Final Piece

I should add I'm using SendObject, my line of code is:

DoCmd.SendObject , , acFormatTXT, stTo, , , stSubject, stText, -1

  #3  
Old December 11th, 2006, 02:05 PM
ManningFan
Guest
 
Posts: n/a
Default Re: Sending email using VBA - One Final Piece

SOLVED. Duh. I needed to change the -1 at the end of the line to a 0.

I know, I know... RTFM!!

ManningFan wrote:
Quote:
I should add I'm using SendObject, my line of code is:
>
DoCmd.SendObject , , acFormatTXT, stTo, , , stSubject, stText, -1
  #4  
Old December 11th, 2006, 02:45 PM
Tim Marshall
Guest
 
Posts: n/a
Default Re: Sending email using VBA - One Final Piece

ManningFan wrote:
Quote:
I know, I know... RTFM!!
>
At 20+ apps per month, one hardly has the time. 8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
  #5  
Old December 11th, 2006, 03:05 PM
ManningFan
Guest
 
Posts: n/a
Default Re: Sending email using VBA - One Final Piece

Tell me 'bout it, Timmy... My boss rides me harder than Pam Anderson's
vibrator.

Tim Marshall wrote:
Quote:
ManningFan wrote:
>
Quote:
I know, I know... RTFM!!
At 20+ apps per month, one hardly has the time. 8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
  #6  
Old December 11th, 2006, 07:45 PM
Tim Marshall
Guest
 
Posts: n/a
Default Re: Sending email using VBA - One Final Piece

ManningFan wrote:
Quote:
Tell me 'bout it, Timmy... My boss rides me harder than Pam Anderson's
vibrator.
8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles