Hi all
I have a database where I am trying to send an individual record via email, but the report shows all entries, here is the code I have so far, does anyone know where I am going wrong?
thanks
Private Sub Command60_Click()
If Me.Dirty Then Me.Dirty = False 'Save first.
If Me.NewRecord Then
MsgBox "Select a record to email."
ElseIf IsNull(Me.EmailAddr) Then
MsgBox "No email address to send to"
Else
On Error GoTo Err_Command60_Click
DoCmd.SendObject acSendReport, "Report1", acFormatPDF, Me.EmailAddr, , , _
"New Rechargeable repair reference " & ID.Value, "Attached find a new invoice to add to Orchard", True
Exit_Command60_Click:
Exit Sub
Err_Command60_Click:
MsgBox Err.Description
Resume Exit_Command60_Click
End If
End Sub