I am using docmd.sendobject in VBA on an Access form to send an email via Outlook 2000.
It works PERFECTLY! The only problem is that it only works ONE TIME. Sometimes it works 2 or 3 times, but I can’t determine a pattern or reason for this.
Here is the code I am using:
Private Sub Command36_Click()
DoCmd.SendObject acSendNoObject, , , [Members], , , “New Resident Complaint”, “COMPLAINT: ” & [ComplaintDescription] & “Last Name ” & [ConLastName] & “DATE RECEIVED: ” & [ComplaintReceivedDate], True, “”
End Sub
Is there some line of code that would “clear” or “reset” some dll or something that is running in Outlook?
I don’t really know VBA, I’m just hacking around here. I’m hoping it is a simple line or two. THANK YOU!