integritycare
Technical User
Hi all,
I am using this code on an access form to email an access report. Outlook opens with the attachment, but then crashes the database;
How can I prevent this. reading the forums people seem to be using CreateObject directly into Outlook.
If this will stop this crashing how is this done.
Thank you
Integrity
I am using this code on an access form to email an access report. Outlook opens with the attachment, but then crashes the database;
Code:
Private Sub cmdMail_Click()
Dim stDocName As String
If Me.Dirty Then
DoCmd.RunCommand acCmdSaveRecord
Else
End If
stDocName = "LEAVE APPLICATION"
DoCmd.SendObject acReport, stDocName, acFormatRTF, , _
, , , , True, False
Exit Sub
End Sub
How can I prevent this. reading the forums people seem to be using CreateObject directly into Outlook.
If this will stop this crashing how is this done.
Thank you
Integrity