Print Page | Close Window

Delete Event in MS Access Sample

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=18656
Printed Date: 21 May 2024 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Delete Event in MS Access Sample
Posted By: rmcgaffic
Subject: Delete Event in MS Access Sample
Date Posted: 13 July 2011 at 1:09pm
How do you delete an event from the Codejock Calendar using Microsoft Access?
 
I just noticed that the Codejock Microsoft Access sample does not allow a user
to click on an event on the calendar and then do either the following:
 
1.  Hit the Delete button
2.  Click on a button that would delete the selected record.
 
Clicking on the delete key just deletes, one letter at a time, the selected event's text.
 
Using the following VBA doesn't work when placed behind a button:
DoCmd.RunCommand acCmdDeleteRecord
 
A previous posting on this forum, entitled "Custom Toolbar Button to Delete Events"
suggested the following code:
 
Set ContextEvent = CalendarControl.ActiveView.GetSelectedEvents(0).Event
mnuDeleteEvent_Click
Set ContextEvent = Nothing
 
When I place this code behind my button, it errors out.
Can anyone suggest what code should be used in lieu of mnuDeleteEvent_Click, which
was not explained further by the forum member.
 
Thanks,
Bob McGaffic
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net