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 ThenDim varName As VariantDim varCC As VariantDim 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 IfEnd Sub
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.
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.
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