L
Lodewijk Olthof
On my form I have a button to email a document from disc. The code behind
this button is:
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = (e-mail address removed)
.Attachments.Add strDocument
.Send
End With
When I push the button, I get the following (translated) error message:
(Compileerfout: Een door de gebruiker gedefinieerd gegevenstype is niet
gedefinieerd)
A by the user defined gegevenstype (I don't know the right word, but it's
the type for boolean, string, etc.) is not defined.
What do I have to do to correct this
this button is:
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = (e-mail address removed)
.Attachments.Add strDocument
.Send
End With
When I push the button, I get the following (translated) error message:
(Compileerfout: Een door de gebruiker gedefinieerd gegevenstype is niet
gedefinieerd)
A by the user defined gegevenstype (I don't know the right word, but it's
the type for boolean, string, etc.) is not defined.
What do I have to do to correct this