Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - MS Access 2007 SOLVED
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MS Access 2007 SOLVED

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


Joined: 12 November 2006
Status: Offline
Points: 75
Post Options Post Options   Thanks (0) Thanks(0)   Quote rgracie Quote  Post ReplyReply Direct Link To This Post Topic: MS Access 2007 SOLVED
    Posted: 27 July 2008 at 4:10pm

There seams to be a problem with the

Calendar.DayView.ScrollToWorkDayBegin function.
 
AND
 
Public Function ScrollToCurrentTime(dTIime As Date)
 Dim Indx As Long
   Indx = m_objCalendarCrt.DayView.GetCellNumber(Format(dTIime, "hh:00"))
   m_objCalendarCrt.DayView.ScrollV Indx
End Function
 
Nothing will get the control to move to the current work day time in Access 2007.
 
Worked perfectly in Access 2002.
 
~ Robert


Cause & Solution:

Ok, So after a TON of testing and breaking down my app, I have discovered the cause of the problem.

In MS Access 2007, if you have the calendar control on a tab control, and do anything (simply setting focus to a particular tab) in code on the Forms Open Event, the control looses it's ability to be update by code.

In all Previous version of MS Access 2000, XP and 2003 this behavior is not seen.

The solution is to simply perform all modifications to the tab control in the forms Load event after the calendar control is completely initialized.


 ~ Robert
 
Back to Top
rgracie View Drop Down
Groupie
Groupie


Joined: 12 November 2006
Status: Offline
Points: 75
Post Options Post Options   Thanks (0) Thanks(0)   Quote rgracie Quote  Post ReplyReply Direct Link To This Post Posted: 28 July 2008 at 5:23pm
I noticed today that if there is another form open while opening the form that contains the calendar control it works properly.
 
So this is definitely a bug...
 
 
Robert
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.203 seconds.