Print Page | Close Window

reoccurent events wont load

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=15688
Printed Date: 05 May 2024 at 3:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: reoccurent events wont load
Posted By: daniel58
Subject: reoccurent events wont load
Date Posted: 22 November 2009 at 12:10pm
ActiveX Version: 13.2
OS: Vista Pro SP2
Development: MS Access 2003 & SQL Server 2005 Express
 
had it all working good. after a BSOD crash - cant load recurrent events no matter what.
 
Implementd all the customised events for using SQL server DB. all works fine except when I try to load the events back from the tables. the data is written to the tables (including the recurring pattern).
 
I put a breakpoint in the code for the event: DoReadRPattern
here is it:

Private Sub MainCDR_DoReadRPattern(ByVal PatternID As Long, pPattern As Object)
  Dim rs As New ADODB.Recordset

  '****BREAK POINT HERE

  rs.Open "SELECT * FROM CdrRecurrencePattern WHERE RecurrencePatternID = " & PatternID, _
      CurrentProject.Connection, adOpenStatic, adLockReadOnly
  Set pPattern = getRPatternFromRS(Me.MainCDR, rs)
  rs.Close
  Set rs = Nothing
End Sub

When I call Populate - it is not called(althogh I have a recurring pattern).
Also, I read the help for the calendar object and found that this event is calld when I call DataProvider.GetRecurrencePattern:

Set pRPattern = Cdr.DataProvider.GetRecurrencePattern(PatternID)

When I call this directly - it should call the custom event procedure. BUT no matter where in the code, the result for this is always NOTHING.

Any ideas ?



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