Forms Event not Firing

D

Dwight

In Outlook I am using the following code in a resource
calendar to automatically fill in the location field:

Function Item_Open()
Item.location = Application.ActiveExplorer.Caption
End Function

The caption is the name of the calendar and therefor the
location. This calendar writes its events to a Master
calendar so the location must be identified. However
this code is not working in certain circumstances in
Outlook 2003; it works fine in Outlook 2002. The code
works OK if the form is chosen and opened up while in the
calendar. However if the form is the default chosen form
and a new item is opened, the event Item_Open does not
fire so the location is not filled. I don't believe that
any of the forms events are firing for this circumstance
but I don't know for sure.

Has anyone else seen this problem with Outlook 2003?

Thanks for any help you can offer.
 
S

Sue Mosher [MVP]

What kind of folder are you trying to create the appointment in -- personal
calendar, public folder, calendar in other user's mailbox? Can you also
explain what you mean by "if the form is the default chosen form and a new
item is opened"?
 
D

Dwight Nelson

Thanks for your reply.

We have a set of mailboxes on our Exchange server for
scheduling resources (rooms on our campus). These
calendars have the new form set as the default form for
opening new appointments. The code that is associated
with the form is not firing with Outlook 2003 if the
calendar is first opened from another mailbox (not the
resource calendar mailbox) and the "new" button is
selected. However the code does work OK if the resource
calendar mailbox is opened native and the new button is
selected. So the problem happens when the new item is
being created in "another user's calendar". I hope this
is clear.

Thanks,
Dwight Nelson
(e-mail address removed)
 
S

Sue Mosher [MVP]

Outlook 2003 includes a new setting -- turned off by default -- to allow
forms in shared mailboxes to run script. You can change the setting by
choosing Tools | Options | Other | Advanced Options and checking the box for
"Allow script in shared folders." See
http://www.slipstick.com/dev/ol2003problems.htm#mailboxscript for more
information on this setting and the comparable setting (on by default) for
forms in public folders.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

Dwight Nelson

I found the option! Thanks so much for your help with
this. We can now migrate to Office 2003 with no(some)
reservations!

Dwight
 
S

Sue Mosher [MVP]

Do you have public folders with custom forms? If so, I'd wait to upgrade
until Microsoft fixes the major forms cache problem related to accessing
public folders through the Public Folders\Favorites hiearchy.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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