I have a button set up on the bottom of my database with the following code to send the form frmSIR via email.
Private Sub Command64_Click()
On Error GoTo Err_Command64_Click
Dim stDocName As String
stDocName = "frmSIR"
DoCmd.SendObject acForm, stDocName
Exit_Command64_Click:
Exit Sub
Err_Command64_Click:
MsgBox Err.Description
Resume Exit_Command64_Click
End Sub
Unfortunately it sends all the records. Is there any way to set it up to only send the current record?
Thanks in Advance
Neo
Private Sub Command64_Click()
On Error GoTo Err_Command64_Click
Dim stDocName As String
stDocName = "frmSIR"
DoCmd.SendObject acForm, stDocName
Exit_Command64_Click:
Exit Sub
Err_Command64_Click:
MsgBox Err.Description
Resume Exit_Command64_Click
End Sub
Unfortunately it sends all the records. Is there any way to set it up to only send the current record?
Thanks in Advance
Neo