K
k.roberts
I am using the following code to try and email a single record from a
form view, but it is outputting all records.
Private Sub Email_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_Account Management Report"
stLinkCriteria = "[Report ID]=" & Me![Report ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.SendObject acSendReport, "r_AC Man report template", "Snapshot
Format"
DoCmd.Close acReport, "r_AC Man report template"
DoCmd.Close acForm, "f_Account Management Report"
End Sub
I also want to know if it's possible to adapt the code for a continuous
form where each record 'row' has the report id and an email button?
Any help gratefully received.
KLR
form view, but it is outputting all records.
Private Sub Email_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_Account Management Report"
stLinkCriteria = "[Report ID]=" & Me![Report ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.SendObject acSendReport, "r_AC Man report template", "Snapshot
Format"
DoCmd.Close acReport, "r_AC Man report template"
DoCmd.Close acForm, "f_Account Management Report"
End Sub
I also want to know if it's possible to adapt the code for a continuous
form where each record 'row' has the report id and an email button?
Any help gratefully received.
KLR