PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

AppointmentItem Change Event

 
 
David C. Holley
Guest
Posts: n/a
 
      10th Aug 2005
Is there a CHANGE event for an AppointmentItem? I have a one-way
interface between Access and Outlook and would like to complete it by
detecting if the AI being changed was created by Access.
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      10th Aug 2005
The event you're looking for is AppointmentItem.Write.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"David C. Holley" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Is there a CHANGE event for an AppointmentItem? I have a one-way
> interface between Access and Outlook and would like to complete it by
> detecting if the AI being changed was created by Access.

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      11th Aug 2005
Can I assume that the entire Outlook Object Model is accessible via
VBScript? Just thought I'd ask in advance.

Sue Mosher [MVP-Outlook] wrote:
> The event you're looking for is AppointmentItem.Write.
>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Aug 2005
Yes. The details, of course, depend on the type of application you're writing.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"David C. Holley" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Can I assume that the entire Outlook Object Model is accessible via
> VBScript? Just thought I'd ask in advance.
>
> Sue Mosher [MVP-Outlook] wrote:
>> The event you're looking for is AppointmentItem.Write.
>>

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      11th Aug 2005
I did a cursory investigative study of VBScript (translated I played
around a little). I'm pretty certain that I can code the procedure to
update Access via Outlook, my next question is how would I call the SUB
from VBScript? I'm assuming that the SUB would have to be in VBA to
allow full access to the Access Object Model and all that fun stuff.

Sue Mosher [MVP-Outlook] wrote:
> Yes. The details, of course, depend on the type of application you're writing.
>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Aug 2005
Just like Access and other Office applications, Outlook can be automated with VBScript. An event-handler, however, needs to be in a class module, which means VBA, VB, VS.Net, Delphi etc. (An exception is custom Outlook forms, which support Outlook item-level events in VBScript code.)

What's the "big picture" goal of your application?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"David C. Holley" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I did a cursory investigative study of VBScript (translated I played
> around a little). I'm pretty certain that I can code the procedure to
> update Access via Outlook, my next question is how would I call the SUB
> from VBScript? I'm assuming that the SUB would have to be in VBA to
> allow full access to the Access Object Model and all that fun stuff.
>
> Sue Mosher [MVP-Outlook] wrote:
>> Yes. The details, of course, depend on the type of application you're writing.
>>

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      11th Aug 2005
The BIG, summarized picture is that when a record is added to or
modified in my Access database, Access reaches out to Outlook and
creates an AppointmentItem. The AIs are tagged with the RecordId from
Access which is used to later find the AI. The recordId is stored in a
user defined field. All of the AIs use a custom form which displays the
information in the user defined fields. I would like to code the form to
check the field and then offer an alter that the AI is DB related and
then create the ability to send changes to the AI (Date, Time, etc.)
from Outlook to Access. The code for that aspect I can handle since I'm
quite familar with the Access Object Model. The help that I need deals
with where to place the specific modules and when to call them.

Sue Mosher [MVP-Outlook] wrote:
> Just like Access and other Office applications, Outlook can be automated with VBScript. An event-handler, however, needs to be in a class module, which means VBA, VB, VS.Net, Delphi etc. (An exception is custom Outlook forms, which support Outlook item-level events in VBScript code.)
>
> What's the "big picture" goal of your application?
>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Aug 2005
Thanks. That makes it much easier to explain your options. Since you're using a custom appointment form, the logical place to put the code is in that form. Forms use VBScript as their code language.

The event that fires when the item open is ... the Item.Open event. In the form's View Code window, you'll see a Script | Event Handler command that will add the declaration for any item-level event handler. If you want to send changes to the database when the user sames the appointment, you'd use the Item.Write event to run your code.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"David C. Holley" <(E-Mail Removed)> wrote in message news:%2314HV$(E-Mail Removed)...
> The BIG, summarized picture is that when a record is added to or
> modified in my Access database, Access reaches out to Outlook and
> creates an AppointmentItem. The AIs are tagged with the RecordId from
> Access which is used to later find the AI. The recordId is stored in a
> user defined field. All of the AIs use a custom form which displays the
> information in the user defined fields. I would like to code the form to
> check the field and then offer an alter that the AI is DB related and
> then create the ability to send changes to the AI (Date, Time, etc.)
> from Outlook to Access. The code for that aspect I can handle since I'm
> quite familar with the Access Object Model. The help that I need deals
> with where to place the specific modules and when to call them.
>
> Sue Mosher [MVP-Outlook] wrote:
>> Just like Access and other Office applications, Outlook can be automated with VBScript. An event-handler, however, needs to be in a class module, which means VBA, VB, VS.Net, Delphi etc. (An exception is custom Outlook forms, which support Outlook item-level events in VBScript code.)
>>
>> What's the "big picture" goal of your application?
>>

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      11th Aug 2005
So can VBScript call a VBA Function?


Sue Mosher [MVP-Outlook] wrote:
> Thanks. That makes it much easier to explain your options. Since you're using a custom appointment form, the logical place to put the code is in that form. Forms use VBScript as their code language.
>
> The event that fires when the item open is ... the Item.Open event. In the form's View Code window, you'll see a Script | Event Handler command that will add the declaration for any item-level event handler. If you want to send changes to the database when the user sames the appointment, you'd use the Item.Write event to run your code.
>

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      11th Aug 2005
I have some proof of concept code in the Item_Close event. The code runs
fine when I'm in design mode for the code using RUN THIS FORM. When
PUBLISH THE FORM AS... and then open the form and close it, nothing
happens. When I design the form, the code is there.

Sue Mosher [MVP-Outlook] wrote:
> Thanks. That makes it much easier to explain your options. Since you're using a custom appointment form, the logical place to put the code is in that form. Forms use VBScript as their code language.
>
> The event that fires when the item open is ... the Item.Open event. In the form's View Code window, you'll see a Script | Event Handler command that will add the declaration for any item-level event handler. If you want to send changes to the database when the user sames the appointment, you'd use the Item.Write event to run your code.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppointmentItem.BeforeDelete Event Kevin Microsoft Outlook VBA Programming 4 9th Jul 2009 11:34 PM
apply cell change event to single column - WorksheetChange Event MiataDiablo@gmail.com Microsoft Excel Programming 5 4th May 2008 02:28 AM
AppointmentItem BeforeDelete Event =?Utf-8?B?S2h5YXRp?= Microsoft Outlook Form Programming 2 28th Jun 2007 03:10 AM
Customising appointmentitem's write() event ... TiTi Microsoft Outlook Calendar 3 2nd Mar 2005 05:47 PM
AppointmentItem.PropertyChange event not fired Sunny Microsoft Outlook Program Addins 7 25th Nov 2003 02:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:28 PM.