P
pierre
Hi all,
When the user press a button on a form,
i want to send a mdb file by email
How can i do that?
The docmd.sendobject has no attachement option
if i use
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "Salut" & vbNewLine & vbNewLine & _
"Fichier de données" & vbNewLine & _
"" & vbNewLine & _
"" & vbNewLine & _
""
On Error Resume Next
With OutMail
.to = "(e-mail address removed)"
.CC = "(e-mail address removed)"
.BCC = ""
.Subject = "Inventaire " & strinvno & " Dollarama "
.Body = strbody
.Attachments.Add FileNameZip
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Set oApp = Nothing
i have a message "an activex object cannot create object"
regards,
pf
When the user press a button on a form,
i want to send a mdb file by email
How can i do that?
The docmd.sendobject has no attachement option
if i use
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "Salut" & vbNewLine & vbNewLine & _
"Fichier de données" & vbNewLine & _
"" & vbNewLine & _
"" & vbNewLine & _
""
On Error Resume Next
With OutMail
.to = "(e-mail address removed)"
.CC = "(e-mail address removed)"
.BCC = ""
.Subject = "Inventaire " & strinvno & " Dollarama "
.Body = strbody
.Attachments.Add FileNameZip
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Set oApp = Nothing
i have a message "an activex object cannot create object"
regards,
pf