473,549 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 (frmappointment s) 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 7944
On 23 Mar 2007 13:57:22 -0700, "keri" <ke********@hot mail.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.Applica tion
Public WithEvents m_olAppointment Items As Outlook.Items
Public m_olNameSpace As Outlook.NameSpa ce

Public Sub Initialize_hand ler()
Set m_olapp = CreateObject("O utlook.Applicat ion")
m_olapp.GetName space("MAPI").L ogon "Microsoft Outlook"
Set m_olNameSpace = m_olapp.GetName space("MAPI")
'this allows us to capture an appointment item change event
Set m_olAppointment Items =
m_olNameSpace.G etDefaultFolder (olFolderCalend ar).Items
etc.

You will now see m_olAppointment Items 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_olAppointment Items_ItemChang e(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 (frmappointment s) through which I create an appointment
item in my outlook calendar, (and save the appointment to
tblappointment s 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
complication s 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
4393
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 GetNameSpace() are missing. I want to know while creating wrappers for COM out of process servers are all methods provided in the wrapper object. Is...
3
1245
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 people from my project's end into the list of possible logins on the Outlook end Is there some book/online resource that can help me find what I'm...
1
1246
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 appreciated! Thanks in advance.
2
6894
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 Outlook Appointment in both a private user's mailbox as well as in a Public Folder from a submission on an ASP.NET WebPage.
2
2292
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 holiday etc). I want those dates assigned an activity to appear as an appointment in outlook. I know how to code to create the appointment as the...
0
1848
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 db table to be "synchronised" with the outlook calendar table ie. when an appointment item is changed in my db i is programaically changed in...
1
2423
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 appointment in my datbase too, so how can a make the change on the database, when someone change the outlook appointment. thx
5
1819
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 about to go out it says that there is something trying to access your mailbox do you want to continue and then I have to click OK each time. Since I...
1
4659
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 As New Outlook.Application Dim objNS As Outlook.NameSpace Dim objRecip As Outlook.Recipient Dim objFolder As...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.