473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Outlook appointments

Hi everyone,

After numerous failed attempts at this I am now trying again to solve
this problem. I really would appreciate ANY help as I have been
stumped with this for weeks and weeks!

I have a form (frmappointments) through which I create an appointment
item in my outlook calendar, (and save the appointment to
tblappointments in my database). The appid in my table is set to match
the entryid of the outlook appointment item, using this code;

APPID = objAppt.EntryID

So each of the appointments stored in my database table has a unique
id that matches the unique id of the corresponding appointment in
outlook.

If my user needs to edit an appointment stored in the db (and outlook)
I want them to be able to do this via the db (not to go to outlook
directly and open and edit the appointment as this will cause
complications in editing the db record of the appointment).

I think the way to do this is;

1.
Select the appointment in the db to be edited (eg by clicking an edit
button)
This would start a search of the outlook appointments to find the one
with the matching ID
When the matching appointment in outlook is found it is deleted
Then the appointment form in my db is opened and appointment is
displayed and can be edited
After editing the user can resend the appointment to the outlook
calendar
The old appointment APPID would be updated to match the new ID created
by outlook

If you understand any of this waffle please help, specifically I have
no idea where to start with the code for the search of the outlook
appointment.

Mar 23 '07 #1
1 7930
On 23 Mar 2007 13:57:22 -0700, "keri" <ke********@hotmail.comwrote:

There is no need to tell people not to edit appointments in Outlook,
because your app can listen in on events occurring in Outlook, thanks
to the power of COM and WithEvents in particular.
I wrote my code in a class module in VB6.
'Class module globals.
Public WithEvents m_olapp As Outlook.Application
Public WithEvents m_olAppointmentItems As Outlook.Items
Public m_olNameSpace As Outlook.NameSpace

Public Sub Initialize_handler()
Set m_olapp = CreateObject("Outlook.Application")
m_olapp.GetNamespace("MAPI").Logon "Microsoft Outlook"
Set m_olNameSpace = m_olapp.GetNamespace("MAPI")
'this allows us to capture an appointment item change event
Set m_olAppointmentItems =
m_olNameSpace.GetDefaultFolder(olFolderCalendar).I tems
etc.

You will now see m_olAppointmentItems as a "control", and you can
program the ItemChange event that would occur when for example someone
drags the appointment to another part of the calendar.
Private Sub m_olAppointmentItems_ItemChange(ByVal Item As Object)
'Do your thing
End Sub

This kind of coding requires a fairly high understanding of the
Outlook object model. You get that by reading a lot and studying
samples. Also note that each version of Outlook is different. For
example snoozing a reminder generates an ItemChange event in Outlook
2000, whereas Outlook 2003 has a separate Snooze event.

-Tom.
>Hi everyone,

After numerous failed attempts at this I am now trying again to solve
this problem. I really would appreciate ANY help as I have been
stumped with this for weeks and weeks!

I have a form (frmappointments) through which I create an appointment
item in my outlook calendar, (and save the appointment to
tblappointments in my database). The appid in my table is set to match
the entryid of the outlook appointment item, using this code;

APPID = objAppt.EntryID

So each of the appointments stored in my database table has a unique
id that matches the unique id of the corresponding appointment in
outlook.

If my user needs to edit an appointment stored in the db (and outlook)
I want them to be able to do this via the db (not to go to outlook
directly and open and edit the appointment as this will cause
complications in editing the db record of the appointment).

I think the way to do this is;

1.
Select the appointment in the db to be edited (eg by clicking an edit
button)
This would start a search of the outlook appointments to find the one
with the matching ID
When the matching appointment in outlook is found it is deleted
Then the appointment form in my db is opened and appointment is
displayed and can be edited
After editing the user can resend the appointment to the outlook
calendar
The old appointment APPID would be updated to match the new ID created
by outlook

If you understand any of this waffle please help, specifically I have
no idea where to start with the code for the search of the outlook
appointment.
Mar 25 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Girish NS | last post by:
Hi, I'm trying to store appointment data to outlook appointments from a c# application. So I'm using outlook object model thru COM interop. But in the applicaton some of the methods like...
3
by: Matt | last post by:
I'm trying to do the following, pulling from Outlook with an independent project: 1. The day's Outlook appointments, with person that the appointment was scheduled with 2. Add a list of...
1
by: Mark | last post by:
Hello, Can anyone help me out on how to pull a list of appointments using from Outlook using VB.NET where the appointments show date, time and description? Any help would be greatly...
2
by: Dash Weh | last post by:
Does anyone know where to find a good tutorial for working with Outlook from an IE ASP.NET Application? Are there any stability issues I should be concerned about? I'm trying to create an...
2
by: keri | last post by:
Hi, I am going to post this in an outlook group as well - however somebody here probably has a better answer for me. I have a table where the user assigns a activity to a date (eg meeting or...
0
by: keri | last post by:
Hi everyone, I have read through all posts on this subject & articles on Microsoft, etc etc but I am not much clearer and really need pointing to the right starting point. I am wanting to my...
1
by: tbb | last post by:
hi I can create outlook apoointments using the outlook object model. But now to my problem, if the user edit/change the appointment in outlook I have inconsistent data because I store the...
5
by: sumeetkbali | last post by:
Hello I am trying to create outlook appointments(outlook 2003) from ASP.NET (VS 2005). I have tried the sample from http://www.outlookcode.com/codedetail.aspx?id=775 but everytime the mail is...
1
by: chrisli | last post by:
Hey, i have written this code to read all Outlook Appointments from another user and fill them into my DGV. Public Sub ReadOtherUserAppointment(ByVal UserName As String) Dim objolApp...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.