That's very helpful, but how do I get a report in print preview, generated from this code as an attachment at the same time?
Private Sub Command25_Click()
DoCmd.OpenReport "nonconformity", acViewPreview, , "[nonconformid] =" & Me.NonConformID
End Sub
Also, if I was going to change the body...