H
Hector Cabrera via AccessMonster.com
Any help? Thanks.
The following code creates a journal entry in outlook:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderContacts)
Set myItem = myOlApp.CreateItem(olJournalItem)
The following code fills the subject:
myItem.Subject = "Itworks"
How can I insert a file from code? The following code did not work:
myItem.Insert ("c:\files\telecons\2005-02-09-09_30-Wed.doc")
myItem.Save
The following code creates a journal entry in outlook:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderContacts)
Set myItem = myOlApp.CreateItem(olJournalItem)
The following code fills the subject:
myItem.Subject = "Itworks"
How can I insert a file from code? The following code did not work:
myItem.Insert ("c:\files\telecons\2005-02-09-09_30-Wed.doc")
myItem.Save