B
Bruce
A little while ago I asked in this forum about how to
select a name from a combo box and have a new e-mail
message start with the address for the selected name
filled in. I knew that SendObject was not the best way to
go, do to its various limitations. Somebody suggested the
following code (which is attached to a command button's
Click event).
Dim strEmail As String
strEmail = "mailto:" & Me![cboEmailDirectory]
Application.FollowHyperlink Address:=strEmail
[cboEmailDirectory] is the combo box from which a name is
selected. Its row source is a table.
This works really well. I have placed it near the middle
of the form. Now I would like to have the Subject filled
in with the identifying number that was generated
automatically when the form was opened, which appears in a
text box (txtRecordID) at the top of the form. The number
is stored in [RecordID] in the table tblMain. Also, I
would like to have the message contain some standard
text. The text could come from a table (tblMessage). The
user would have the option of adding to the e-mail before
sending it - no automatic sending. How can I accomplish
this?
select a name from a combo box and have a new e-mail
message start with the address for the selected name
filled in. I knew that SendObject was not the best way to
go, do to its various limitations. Somebody suggested the
following code (which is attached to a command button's
Click event).
Dim strEmail As String
strEmail = "mailto:" & Me![cboEmailDirectory]
Application.FollowHyperlink Address:=strEmail
[cboEmailDirectory] is the combo box from which a name is
selected. Its row source is a table.
This works really well. I have placed it near the middle
of the form. Now I would like to have the Subject filled
in with the identifying number that was generated
automatically when the form was opened, which appears in a
text box (txtRecordID) at the top of the form. The number
is stored in [RecordID] in the table tblMain. Also, I
would like to have the message contain some standard
text. The text could come from a table (tblMessage). The
user would have the option of adding to the e-mail before
sending it - no automatic sending. How can I accomplish
this?