Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - In Acc ; Activeview in Report = Activeview in Form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

In Acc ; Activeview in Report = Activeview in Form

 Post Reply Post Reply
Author
Message
LeJi View Drop Down
Newbie
Newbie


Joined: 02 May 2008
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeJi Quote  Post ReplyReply Direct Link To This Post Topic: In Acc ; Activeview in Report = Activeview in Form
    Posted: 02 May 2008 at 4:53pm
Dear,
 
In Access, Is it possible to have on an Report exactly the same activeview that on a form,
 
I tested the code below, but if I select 3 days in the form I do not find them in the Report ? 
 
Can you help me
 
In advance Merci
Jacky
 
Private Sub Report_Open(Cancel As Integer)
    Dim ObjCalendarFrms As CalendarControl
    Dim ObjCalendar As CalendarControl
    Set ObjCalendarFrms = Forms!PlanningCalendar!CalendarControl1.Object
    Set ObjCalendar = Me.wndCalendar.Object
    Call PlanningPopulate(ObjCalendar)
    ObjCalendar.VisualTheme = xtpCalendarThemeOffice2007
    ObjCalendar.ViewType = ObjCalendarFrms.ViewType
    ObjCalendar.DayView.TimeScale = ObjCalendarFrms.DayView.TimeScale
    ObjCalendar.PrintOptions.PrintFromToExactly = False
    ObjCalendar.ActiveView.ShowDay ObjCalendarFrms.ActiveView.Days(0).Date, ObjCalendarFrms.ActiveView.Days(ObjCalendarFrms.ActiveView.DaysCount - 1).Date
    'Me.wndCalendar.Object.PrintOptions.PrintDateHeader = False
  
End Sub
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.