Print Page | Close Window

Access Example - Dbl-Click Error??

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=6381
Printed Date: 11 May 2024 at 4:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Access Example - Dbl-Click Error??
Posted By: bardaroart
Subject: Access Example - Dbl-Click Error??
Date Posted: 12 February 2007 at 10:53am

New Access Example Crashes when Dbl-Clicking an Event

I had the demo installed and the Access example working - when I uninstalled the Demo and Installed the real Version of the Control - the Access Example generates an error - see code below...

Any help is appreciated

Thanks! - AB




Private Sub CalendarControl1_DblClick()
    Dim HitTest As CalendarHitTestInfo
    Set HitTest = Me.CalendarControl1.ActiveView.HitTest

    If HitTest.ViewEvent Is Nothing Then
        '    mnuNewEvent_Click
      
        g_pEditEvenArgs.setNewEvent Me.CalendarControl1.Object
    Else
        g_pEditEvenArgs.setEditingEvent Me.CalendarControl1.Object, HitTest.ViewEvent.Event
    End If
   
      DoCmd.OpenForm "FrmEditEvent", , , , , acDialog

End Sub



Replies:
Posted By: bardaroart
Date Posted: 12 February 2007 at 5:31pm
errors fixed - made some changes to references...



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