Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Delete Event in MS Access Sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Delete Event in MS Access Sample

 Post Reply Post Reply
Author
Message
rmcgaffic View Drop Down
Groupie
Groupie


Joined: 03 June 2011
Location: Pittsburgh, PA
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote rmcgaffic Quote  Post ReplyReply Direct Link To This Post Topic: Delete Event in MS Access Sample
    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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.