CarlaInJax,
OK, so it turns out that you're using the SendObject Action (in a macro)
instead of the SendObject Method (using VB) . Macros tend to be very
limited, and I've never used the SendObject "Action"
By using VB instead of a macro, you can avoid the extra "outlook prompt"
that occurs with a macro.
Try this instead...
You probably have a button on the form that you click to send the
email... let's say it's named "cmdSendEMail"
The combobox on the form that contains the Email address selection is
named [Work Assigned To]. (any object name that contains spaces must be
bracketed)
1. In the properties for the SendEmail button, find the OnClick
property, and put your cursor in the field.
2. Using the down arrow on the right of the text box, select (or
manually type in) [Event Procedure]
3. Now click the little button on the right with three dots (...)
You'll see this...
Private Sub cmdSendEMail_Click(Cancel As Integer)
End Sub
4. Now put your SendObject Method (see help on SendObject "Method")
between the two statements.
Private Sub cmdSendEMail_Click(Cancel As Integer)
DoCmd.SendObject , , , [Work Assigned To],,,"Nature of Complaint"
End Sub
When the SendEmail button is clicked... this will open your email
application with the TO filled in (with your email address from [Work
Assigned To]), and the Subject set to "Nature of Complaint".
Try it... you'll like it...
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
CarlaInJax said:
It's still not working for me. I can get it to do the send object if I
manually type the e mail address in when it pops up in Outlook, or if I
type
an e mail address as an argument, I just cannot get it to automatically
populate the fields for me. My fields with e mail addresses is called
Work
Assigned To and the fields with the subject would be titled Nature of
Complaint. I've typed the following as arguments:
To: DoCmd.SendObject, , ,Work Assigned To
Subject: DoCmd.sendobject, , ,nature of complaint
What obvious thing am I overlooking?
Thanks.