I am trying to send this report by way of email in an HTML format, the problem is that its send all records instead of the current record on my form. Here is the code, can someone point me in the right direction to be able to email only the current record?
Private Sub Command90_Click()
On Error GoTo Err_Command90_Click
Dim stDocName As String
stDocName = "Sand"
DoCmd.SendObject acReport, stDocName
Exit_Command90_Click:
Exit Sub
Err_Command90_Click:
MsgBox Err.Description
Resume Exit_Command90_Click
End Sub
Thank you.
Private Sub Command90_Click()
On Error GoTo Err_Command90_Click
Dim stDocName As String
stDocName = "Sand"
DoCmd.SendObject acReport, stDocName
Exit_Command90_Click:
Exit Sub
Err_Command90_Click:
MsgBox Err.Description
Resume Exit_Command90_Click
End Sub
Thank you.