![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hi,
specs: Outlook 2003 - winXP I'm developing an Acces database with some automation to Outlook. In Access I create an appointment which I want to automate and sent via Outlook. This is what I have so far: Dim objApp As New Outlook.Application Dim objAppointment As Outlook.AppointmentItem Dim objSession As Object Set objApp = CreateObject("Outlook.Application") Set objAppointment = Outlook.CreateItem(olAppointmentItem) With objAppointment .Start = rst("StartDate") '- Extract from Access .End = rst("EndDate") .Recipients.Add (rst("Addressee")) .Subject = rst("Subject") .ReminderSet = IIf(rst("Reminder") = -1, True, False) .Location = rst("Locatie") .Send End With When I run this code the appointment seems to be made but I don't see it in de calendar of the person I sent it to. If I choose .Display I see the appointment and I can click Send. If I choose Send I don't see the appointment What piece of code am I missing here? thanks in advance for any pointers... -- Maurice Ausum |
#2
|
|||
|
|||
![]()
You will need to set item.MeetingStatus = olMeeting. You also should set the
properties of any recipients as required (olTo), or optional (olCC) or as resources (olBCC). See the help in the Object Browser for AppointmentItem.MeetingStatus. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Maurice" wrote in message ... Hi, specs: Outlook 2003 - winXP I'm developing an Acces database with some automation to Outlook. In Access I create an appointment which I want to automate and sent via Outlook. This is what I have so far: Dim objApp As New Outlook.Application Dim objAppointment As Outlook.AppointmentItem Dim objSession As Object Set objApp = CreateObject("Outlook.Application") Set objAppointment = Outlook.CreateItem(olAppointmentItem) With objAppointment .Start = rst("StartDate") '- Extract from Access .End = rst("EndDate") .Recipients.Add (rst("Addressee")) .Subject = rst("Subject") .ReminderSet = IIf(rst("Reminder") = -1, True, False) .Location = rst("Locatie") .Send End With When I run this code the appointment seems to be made but I don't see it in de calendar of the person I sent it to. If I choose .Display I see the appointment and I can click Send. If I choose Send I don't see the appointment What piece of code am I missing here? thanks in advance for any pointers... -- Maurice Ausum |
#3
|
|||
|
|||
![]()
Hi ken,
Thanks for replying. I'll set the options as you stated. Finally I know ;-) -- Maurice Ausum "Ken Slovak - [MVP - Outlook]" wrote: You will need to set item.MeetingStatus = olMeeting. You also should set the properties of any recipients as required (olTo), or optional (olCC) or as resources (olBCC). See the help in the Object Browser for AppointmentItem.MeetingStatus. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Maurice" wrote in message ... Hi, specs: Outlook 2003 - winXP I'm developing an Acces database with some automation to Outlook. In Access I create an appointment which I want to automate and sent via Outlook. This is what I have so far: Dim objApp As New Outlook.Application Dim objAppointment As Outlook.AppointmentItem Dim objSession As Object Set objApp = CreateObject("Outlook.Application") Set objAppointment = Outlook.CreateItem(olAppointmentItem) With objAppointment .Start = rst("StartDate") '- Extract from Access .End = rst("EndDate") .Recipients.Add (rst("Addressee")) .Subject = rst("Subject") .ReminderSet = IIf(rst("Reminder") = -1, True, False) .Location = rst("Locatie") .Send End With When I run this code the appointment seems to be made but I don't see it in de calendar of the person I sent it to. If I choose .Display I see the appointment and I can click Send. If I choose Send I don't see the appointment What piece of code am I missing here? thanks in advance for any pointers... -- Maurice Ausum |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Last row visible | TomThumb | Outlook and VBA | 4 | June 2nd 07 09:20 PM |
Entries not visible in Outlook, are visible via OWA | Sean C | Outlook - Calandaring | 2 | July 25th 06 07:40 PM |
Visible posts? | Bruce Garlock | Outlook Express | 2 | June 26th 06 03:36 AM |
Tab not visible on custom form | Matt | Outlook - Using Forms | 2 | May 25th 06 12:19 AM |
Form not visible in sent message | KFitz | Outlook - Using Forms | 4 | April 25th 06 10:57 AM |