Outlook 2002 and 2003

T

Thomas Kroljic

I have an Access program that is creating appointments in Outlook 2002. Over
the last week, two new PC's have been added to the network and have Outlook
2003.

Are there any issues that I need to address to ensure that my code (see
below) works for both Outlook 2002 and 2003?

Dim outobj As Outlook.Application
Dim outappt As Outlook.AppointmentItem
Set outobj = CreateObject("outlook.application")
Set outappt = outobj.CreateItem(olAppointmentItem)
With outappt
.Start = Me.txtTicklerDate + #9:00:00 AM#
If Form_Contacts.CompanyName > " " And _
Form_Contacts.Institution = True Then
.Subject = Form_Contacts.CompanyName
Else
.Subject = Form_Contacts.LastName & ", " &
Form_Contacts.FirstName
End If
.Body = Me.txtTicklerText
.Location = Form_Contacts.StoreDesc
.ReminderMinutesBeforeStart = 10
.ReminderSet = True
.Save
End With
' Release the Outlook object variable.
Set outobj = Nothing
Set outappt = Nothing

Thank you,
Thomas J. Kroljic
 
K

Ken Slovak - [MVP - Outlook]

..Body and the Inspector properties used to get the email editor are
restricted in Outlook 2003 and Outlook 2002 SP3. Only reading .Body, writing
it is still OK. In a COM addin (or Outlook VBA project) those properties are
trusted if you derive all Outlook objects from the Application object that
is intrinsic to Outlook VBA or is passed in a COM addin's On_Connection
event.

See http://www.outlookcode.com/d/ol2003problems.htm for more information on
what's new with Outlook 2003. Be aware that many of the same things apply to
Outlook 2002 SP3 and will apply to Outlook 2000 SP4 when it is released.
 
T

Thomas Kroljic

Ken,
Thanks for the informative response. I'll definitely check out the link
you sent.
A couple of my users are telling me that it takes sometimes 30 seconds
to 20 minutes
before the appointments show up in their Outlook calender. Is there anyway
to decrease this time lag? Do I, as a programmer, have any control over this
communication between applications or exchange?

Thanks,
Thomas J. Kroljic
 
T

Thomas Kroljic

Ken,
Thanks for the info...I read the knowledgebase articles you included.

Thanks,
Thomas J. Kroljic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top