M
Mitch via AccessMonster.com
The following is what I am trying to use to email more than 1 person (in the
"To" field). It actually works, but now I want to use a variable from the
form, in my case it would be "me.emailaddy", but when I use that i get
"invalid use of null". I know it is because I don't use quotes, but I can't
with a variable in there... what am I overlooking?
---------------------------
Private Sub Mail_Click()
Dim strTo As String
Dim strSubject As String
Dim strMsg As String
strTo = "(e-mail address removed);[email protected]"
strSubject = "MY SUBJECT"
strMsg = "MY MSG"
DoCmd.SendObject acSendNoObject, , acFormatTXT, strTo, , , strSubject, "",
True
"To" field). It actually works, but now I want to use a variable from the
form, in my case it would be "me.emailaddy", but when I use that i get
"invalid use of null". I know it is because I don't use quotes, but I can't
with a variable in there... what am I overlooking?
---------------------------
Private Sub Mail_Click()
Dim strTo As String
Dim strSubject As String
Dim strMsg As String
strTo = "(e-mail address removed);[email protected]"
strSubject = "MY SUBJECT"
strMsg = "MY MSG"
DoCmd.SendObject acSendNoObject, , acFormatTXT, strTo, , , strSubject, "",
True