473,785 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cancelling Outlook meeting requests

8 New Member
I have a database that is used to book venues and assign people to those venues. The person doing the booking can send an appointment request from Access to an individuals Outlook calendar. This part of the system works fine.

I can also send a cancelled appointment request from Access to the same individual for the same appointment but for some reason Outlook is not recognising the cancel request as being for the original appointment so when the user (in Outlook) clicks 'remove from calendar' the original appointment is not removed.

Is there something else I need to be sending with the original and cancelled meeting requests?

The code for sending the meeting request is:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdAddAppt_Click()
  2.     On Error GoTo Add_Err
  3.  
  4.     If Me!TutorID = 3 Then
  5.         MsgBox ("There is no tutor selected to send" & Chr(10) _
  6.             & "a meeting meeting request")
  7.         Exit Sub
  8.     End If
  9.  
  10.     'Exit the procedure if appointment has been added to Outlook.
  11.     If Me!ApptmentAdded = True Then
  12.         MsgBox "This appointment is already added to Microsoft Outlook"
  13.         Exit Sub
  14.     'Add a new appointment.
  15.     Else
  16.         Dim objOutlook As Outlook.Application
  17.         Dim objAppt As Outlook.AppointmentItem
  18.         Dim objDuration As Integer
  19.         Dim objOutlookRecip As Outlook.Recipient
  20.         Set objOutlook = CreateObject("Outlook.Application")
  21.         Set objAppt = objOutlook.CreateItem(olAppointmentItem)
  22.         objAppt.MeetingStatus = Outlook.OlMeetingStatus.olMeeting
  23.  
  24.         Dim aTemp As Long
  25.         Dim bTemp As Long
  26.         Dim cTemp As Integer
  27.         aTemp = Round((Int(CSng(Me!TimeTo) * 1440)) / 5, 0) * 5
  28.         bTemp = Round((Int(CSng(Me!TimeFrom) * 1440)) / 5, 0) * 5
  29.         cTemp = aTemp - bTemp
  30.  
  31.         Dim objMessage As String
  32.         Dim strRecip As String
  33.         Dim strSelfLead As String
  34.  
  35.         strRecip = Me![Tutor Email Address]
  36.         objMessage = "Teaching booking - " & Me![Programme Name] & ", " & Me![Name of Hirer]
  37.         If Me![Self Lead] = -1 Then
  38.             strSelfLead = "Yes"
  39.         Else
  40.             strSelfLead = "No"
  41.         End If
  42.  
  43.         With objAppt
  44.             Set objOutlookRecip = .Recipients.Add(strRecip)
  45.                 objOutlookRecip.Type = olTo
  46.             .Start = Me![Visit Date] & " " & Me!TimeFrom
  47.             .Duration = cTemp
  48.             .Subject = objMessage
  49.             .ReminderMinutesBeforeStart = 15
  50.             .ReminderSet = True
  51.             .Body = "Number of Students: " & Me![Student Total] & vbCrLf _
  52.                 & "Number of Adults: " & Me![Adult Total] & vbCrLf _
  53.                 & "Self Lead?: " & strSelfLead & vbCrLf _
  54.                 & "Level: " & Me!Level
  55.             .Location = Me!Venue
  56.             .Send
  57.         End With
  58.         'Release the AppointmentItem object variable.
  59.     End If
  60.  
  61.     'Release the Outlook object variable.
  62.     Set objAppt = Nothing
  63.     Set objOutlook = Nothing
  64.     Set objOutlookRecip = Nothing
  65.  
  66.     'Set the AddedToOutlook flag, save the record, display a message.
  67.     Me!ApptmentAdded = True
  68.     DoCmd.RunCommand acCmdSaveRecord
  69.     MsgBox "Appointment Added!"
  70.     Exit Sub
  71.  
  72. Add_Err:
  73.     MsgBox "Error " & Err.Number & vbCrLf & Err.Description
  74.     Exit Sub
  75.  
  76. End Sub
Oct 11 '07 #1
1 6162
nico5038
3,080 Recognized Expert Specialist
I guess you need to try to Find the appointment based on your data and then issue the delete.
This link might hold additional information:
http://www.mombu.com/microsoft/outlo...ry-937160.html

Nic;o)
Oct 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5818
by: James | last post by:
Is it possible for me to generate Outlook objects in an ASP.NET application on a web server (like a calander event for example) and then attach that object to an email so that the recipient can open it and add a calander event to THEIR Outlook file? I already know how to send mail using the SmtpMail object. If it is possible, how difficult is it? And are there any good examples, tutorials, or books that could point me in this direction...
3
1340
by: Bigfoot | last post by:
Hello, I would like to send e-mail and meetingrequests from an asp.NET webform, is this possible? In other words: can I use the Outlook objectmodel in asp.NET? Stefan
0
1378
by: William | last post by:
Hi there, Is there anybody here who ever create outlook task item from asp .net script successfully ? Actually I've created the script for creating the task, and it run successfully from the local computer using the admin login, but if I try to access the page who created the outlook task item from remote computer, and also using the admin login, it will fail. Below is one of the error message that I've got,
0
1036
by: DORIS | last post by:
How do you send meeting requests through Outlook using .Net Framework 2.0?
2
2296
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 user enters the activity for the date - however the user may then change the activity for a certain...
0
1411
by: kalichakradhar | last post by:
hi all, hi, I am developing a application which would open the shared calender of outlook and read the meeting notices and also modifies the meeting notice from Vb.I am successful in opening the shared calender but now how can i read/write the contents of the shared calender. please provide me the syntax of functions that can acheive the purpose in VB. I have one more problem when i execute the code.. it gives a popup window saying that...
2
4272
by: daruse712 | last post by:
Hi there, I'm writing a function to search through a calendar to find any conflicting meeting times for the appointment recently recieved. Heres the code: Private Function isConflict(appt As Outlook.AppointmentItem) As Boolean Dim strFind As String Dim foundAppt As Outlook.AppointmentItem 'string for a conflicting appointment 'calItem.start <= appt.start < calItem.end - appointment starts between an existing...
0
1303
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I'm trying to build a Calendar (outlook style) with C#. When I just thought i almost finished, i found out that I've few problems. I want my calndar will have the ability to show few appointments at the same time (meaning that person 1 has meeting from 10-12 and person 2 has meeting from 10:30-13:00), I used User Control to crate a label that presnets the task, and created it for each hour, so actually i've 34 lables when actually i...
10
6090
by: mofmans2ndcoming | last post by:
I have a script for my companies internal network that I am developing to ease the transition away from out old conference room scheduling system to outlook. (this is a stop gap until we can get developer time to do a proper server side solution) The users are use to a web interface and the conference rooms AD names are not human friendly so I decided to use some ActiveX to create a sort of meeting request link on a web page so when you click...
0
9645
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10341
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8979
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2881
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.