Thanks, it works fine. One more item puzzles me: I have a table that
has about 20 different departments within our company. Each department
has from 5-10 email recipients. For example one row has "Quality
Assurance" in the field called "Departments" and three email addresses
stored as a long string (under 255 of course)
"Be*********@Arcturus.com,
Ev**********@Arcturus.com,
To*******@Arcturus.com" in the field called "EmailAddresses". I have a
combobox (Me!ComboAddresses) on a form from which I choose "Quality
Assurance" and want that to populate the "Recipient" from the email
command string:
DoCmd.SendObject acSendNoObject, , , " & Me!ComboAddresses & ", , ,
"Database maintenance notice - """ & Me!ComboEmailDB & """ database",
_
"I will need to shut down the """ & Me!ComboEmailDB & """ database from
to today." & Chr(13) & _
"I will send a separate Email notification to confirm that it is OK to
sign back on." & Chr(13) & Chr(13) & _
"" & Chr(13) & _
"Thanks!", , _
False
I tried this and got ... & Me!ComboAddresses & ... as a literal in
the recipients when what I wanted to see was the
"Be*********@Arcturus.com,
Ev**********@Arcturus.com,
To*******@Arcturus.com" string.
Of course "Me!ComboAddresses" will also need to be rewritten to pull
the second column from the table which is the "EmailAddresses".
Thanks again for any clues!
Dave