Delete Event in MS Access Sample |
Post Reply |
Author | |
rmcgaffic
Groupie Joined: 03 June 2011 Location: Pittsburgh, PA Status: Offline Points: 14 |
Post Options
Thanks(0)
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |