Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to Outlook Automation

Status
Not open for further replies.

lewds

Programmer
Jul 19, 2002
144
US
Is there a possible method to take an Access Memo and transfer to an Outlook journal entry? For a particular day?
 
Here is what I have so far, and this works to save Journal Entry in my default folder.

Dim objOutlook As Object
Dim objItem As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objItem = objOutlook.CreateItem(olJournalItem)

objItem.Subject = "No Joke?"
objItem.Start = Now()
objItem.Body = "ha ha ha ha ha"
objItem.Save

Set objOutlook = Nothing

I need to know the objItem that will set the path to a Public Folder?
 
Got it. Not the objitem to set the path

Set ol = New Outlook.Application
Set olns = ol.GetNamespace("MAPI")
Set MyFolder1 = olns.Folders("Public Folders")
Set MyFolder2 = MyFolder1.Folders("All Public Folders")
Set MyFolder3 = MyFolder2.Folders("Division")
Set MyFolder4 = MyFolder3.Folders("PlantID ")
Set MyFolder5 = MyFolder4.Folders("Log Type")
Set MyFolder6 = MyFolder5.Folders("Unit Log")


Set objItem = MyFolder6.Items.Add

objItem.Subject = "No Joke?"
objItem.Start = Now()
objItem.Body = "ha ha ha ha ha"
objItem.Save

Set ol = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top