Hello Everyone!
Today I am exploring the wonderful world of sending Emails automatically.
Please see code below:
Me.txtEmail.value 's Control Source is "=[txtRequester].[column](1)".
the problem I am having is the email will pop up with NO To: person in the first line, but the CC: is working fine.(I have the same code working in another form, but doesn't have the special control source.)
Any ideas as to why this is happening and any way of working around this?
Thank you!
Today I am exploring the wonderful world of sending Emails automatically.
Please see code below:
Code:
Private Sub btnEnter_Click()
If (DCount("*", "qryDuplicateRequest") = 0) Then
DoCmd.GoToRecord acForm, "frmRequest", acNewRec
End If
DoCmd.Close acQuery, "qryDuplicateRequest"
Me.Refresh
Me.txtemail.Requery
Dim varName As Variant
Dim varCC As Variant
Dim varSubject As Variant
Dim varBody As Variant
[B][U]varName = Me.txtemail.Value[/U][/B]
varCC = "NFCCYCLECOUNTERS@unicarriersamericas.com, NFCPARTSHORTAGE@unicarriersamericas.com"
varSubject = "IVR Request has been submitted."
varBody = "Thank you for your request, your part has been added to the list."
DoCmd.SendObject , , , varName, varCC, , varSubject, varBody, True, False
Me.txtEmail.value 's Control Source is "=[txtRequester].[column](1)".
the problem I am having is the email will pop up with NO To: person in the first line, but the CC: is working fine.(I have the same code working in another form, but doesn't have the special control source.)
Any ideas as to why this is happening and any way of working around this?
Thank you!