Re: Send email
- From: "Carl Rapson" <mr.mxyzptlk@xxxxxxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 11:49:24 -0500
"EMILYTAN via AccessMonster.com" <u33296@uwe> wrote in message
news:729960c04ae49@xxxxxx
Help!!!!
EMILYTAN wrote:
What is the difference between .Display and .Send?
I changed already but still cannot send automatically and once I open that
form on that particular record, it send the mail and i open again, it send
again...
I just want it to send automatically once i open the database without
opening
the form and send only once....
Any idea?
replace[quoted text clipped - 7 lines]
objOutlookMsg.Display
Set objOutlook = Nothing
End Sub
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200705/1
Display will open the email in a preview window, while Send sends the email
without previewing.
Do you want the email to send automatically when you open the database or
just a specific form? If it's the database, you can set up a macro that
calls your email sub and set that macro to run automatically at startup. If
it's the form, you can put the code in the Form_Load event. In either case,
you'll need to add some code to your email routine and a flag somewhere in
your database. After the Send/Display call, you'll set that flag to True to
indicate that the email has been sent. Before the Send/Display call, you'll
check the value of that flag and only send the email if the flag is False.
Carl Rapson
.
- Follow-Ups:
- Re: Send email
- From: EMILYTAN via AccessMonster.com
- Re: Send email
- References:
- Send email
- From: EMILYTAN
- Re: Send email
- From: Perry
- Re: Send email
- From: EMILYTAN via AccessMonster.com
- Re: Send email
- From: EMILYTAN via AccessMonster.com
- Send email
- Prev by Date: Suppressing default error message
- Next by Date: Select Multiple columns in combo box
- Previous by thread: Re: Send email
- Next by thread: Re: Send email
- Index(es):
Relevant Pages
|