M
mfrisbyuk via AccessMonster.com
Hi
I am trying to setup a button that will select a report and attact it as a
excel file to a email
when you click the button it will ask which team leader do you want, you type
in a name and then it transfers to outlook ok, but when you have done it once,
you can send another email as you get an error message "The SendObject action
was canceled."
below is the click button Information
Any help on this would be greatful
Mark
Private Sub Marx_Click()
On Error GoTo Err_Marx_Click
Dim stDocName As String
stDocName = "Marx"
DoCmd.SendObject acReport, stDocName, acFormatXLS, , , , "Marx 2 Details
for my Team"
Exit_Marx_Click:
Exit Sub
Err_Marx_Click:
MsgBox Err.Description
Resume Exit_Marx_Click
End Sub
I am trying to setup a button that will select a report and attact it as a
excel file to a email
when you click the button it will ask which team leader do you want, you type
in a name and then it transfers to outlook ok, but when you have done it once,
you can send another email as you get an error message "The SendObject action
was canceled."
below is the click button Information
Any help on this would be greatful
Mark
Private Sub Marx_Click()
On Error GoTo Err_Marx_Click
Dim stDocName As String
stDocName = "Marx"
DoCmd.SendObject acReport, stDocName, acFormatXLS, , , , "Marx 2 Details
for my Team"
Exit_Marx_Click:
Exit Sub
Err_Marx_Click:
MsgBox Err.Description
Resume Exit_Marx_Click
End Sub