Field on a Form to attach a Report in an email when double clicked

D

DavidGuaman

I have the following code on my form, this field is for an e-mail and uses
the following code which works great. I would like the e-mail to
automatically pick a report already created and linked to the current record
on the form.
I know how to do this with a macro, but the macro wont populate the e-mail
address from the field on my form, so please help!!!

Private Sub e_mail_DblClick(Cancel As Integer)
On Error GoTo Err_Handler

DoCmd.SendObject acSendNoObject, To:=Me.

Exit_Handler:
Exit Sub

Err_Handler:
If Err.NUMBER <> 2501 Then
MsgBox "Error " & Err.NUMBER & " - " & Err.Description
End If
Resume Exit_Handler
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top