Bill said:
That is the question, the response to which may answer my
next question - why are some questions left in the dust?
I posted "email from form" by Bill on 7/7 at 10:23. I
watched anxiously as subsequent new questions were posted
and responded to. Mine still lays there unanswered.
This is not an indictment but an attempt to understand the
system. Is the question to hard, obscure or time demanding
to answer? Should I phrase things differently?
Thanks,
Bill
No, your question was fine, but in fact is a difficult question. To answer
that email question, there is quite a few software disciplines and
technologies involved to answer your question. First, what kind of email
client are you using. Likely, you want to use a programmable email system
(since, how else can you automate this process). This likely means you have
to use, setup, and learn how outlook works. All of a sudden, we are talking
about programming and using Outlook. That is a big program, and can take a
lot of time to learn. (you can't use Outlook express, since it is not
programmable).
So, all of a sudden, we are now working with two pieces of complex software,
and a some good programming knowledge is needed for each system. And, some
readers looking at your request might also assume that we need ms-word
programming ability also. Now, we are up to 3 possible software packages,
and the required years of learning all 3 packages. So, what you ask is going
to take some fairly advanced knowlenage, and programming ability here.
So, no..your question is fine, but you just don't have enough knowledge to
realize how difficult your question is.
Here is one link with one possible solution:
http://www.mvps.org/access/modules/mdl0019.htm
And,. here is a code snip I found in this newsgroup by googling;
Option Explicit
Public Sub MessageToSend()
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add
("(e-mail address removed)")
.Subject = "Quarterly Performance Information"
.Importance = olImportanceHigh
Set objOutlookAttach = .Attachments.Add("A:\Test.pdf")
.Body="Hello!"
.Send
End with
exitSub:
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
Set objOutlookAttach = Nothing
Exit Sub
End Sub
The above would let you attached a document, and send a email. You would
further have to code a loop to "process a query". As you can see, just about
all disciplines of programming are need. To accomplish this task you need:
Good VBA coding skills
You need to know how to write and code record set processing in VBA
(reocrdset processing, and process data in a loop)
You need to know how to write automaton code, and automate outlook (the
above access example does this)
The above is a good start.