Avatar of SteveL13
SteveL13
Flag for United States of America asked on

Why email not being sent

I have this code in the afterupdate event of a checkbox.  But when the checkbox is checked true the email is not being sent.  In fact nothing is happening.

Private Sub chkbxSampleShipped_AfterUpdate()

   If Me.chkbxSampleShipped = True Then
   
Dim varName As Variant
Dim varCC As Variant
Dim varSubject As Variant

    varName = "somebody@somewhere.com"
    varCC = "somebodyelse@somewhere.com"

    varSubject = "The sample has been shipped for part # - " & [txtPartN] & ""

    DoCmd.SendObject , , , varName, varCC, , varSubject, varBody, True, False
   
    MsgBox "The samples shipped notification has been emailed to Bill and Bob."

    End If

End Sub

Open in new window

Microsoft Access

Avatar of undefined
Last Comment
Jim Dettman (EE MVE)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Jim Dettman (EE MVE)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck