T
Tom
I installed Lebans Calendar to select a date range as described on the
Lebans web page and set it to be able to pick a lot of days and it
works fine. I then imported the modules and the form into another
database and it works, except I can only select a date range of 7 days
or less.
I imported the form and modules so all the code should be the same
The form load event is:
Private Sub Form_Load()
' Create an instance of our Class
Set mc = New clsMonthCal
' Set the hWndForm Property
mc.hWndForm = Me.hWnd
mc.MaxSelectRangeofDays = 5000
and the on click event for the command button is:
Private Sub cmdDateRange_Click()
' Retrieve the currently selected date(s).
' Call our Function to display the Calendar
Dim blRet As Boolean
Dim DateStart As Date
Dim DateEnd As Date
' If the control is NULL then use Today's date.
DateStart = Nz(Me.begin.Value, Date)
DateEnd = DateStart + 7
As it is on the first database. I can also try changing this value to
365 and it still only can select up to 7 days.
I've looked over the different place to add code and the references but
can't find any reason for this not to work.
Does anyone have any ideas?
Thanks
Lebans web page and set it to be able to pick a lot of days and it
works fine. I then imported the modules and the form into another
database and it works, except I can only select a date range of 7 days
or less.
I imported the form and modules so all the code should be the same
The form load event is:
Private Sub Form_Load()
' Create an instance of our Class
Set mc = New clsMonthCal
' Set the hWndForm Property
mc.hWndForm = Me.hWnd
mc.MaxSelectRangeofDays = 5000
and the on click event for the command button is:
Private Sub cmdDateRange_Click()
' Retrieve the currently selected date(s).
' Call our Function to display the Calendar
Dim blRet As Boolean
Dim DateStart As Date
Dim DateEnd As Date
' If the control is NULL then use Today's date.
DateStart = Nz(Me.begin.Value, Date)
DateEnd = DateStart + 7
As it is on the first database. I can also try changing this value to
365 and it still only can select up to 7 days.
I've looked over the different place to add code and the references but
can't find any reason for this not to work.
Does anyone have any ideas?
Thanks