Calendar problem selecting last day of month

  • Thread starter Thread starter Jim Burke in Novi
  • Start date Start date
J

Jim Burke in Novi

For some reason access isn't allowing me to select the last of the month on
my calendar initially. If I select another date, then I can go back and
select the last of the month. Maybe my code isn't right for intializing the
calendar? I want it to be set to the current month and year with no date
selected, so in my form Open event I have (curYear and curMonth are values I
set when my appl starts up):

calDOS.SetFocus
calDOS.Year = curYear
calDOS.Month = curMonth
calDOS.Object.Value = Null

It displays the current month and year but will not allow me the select the
last day of the month initially. It will allow me to select any other day!
 
I fixed the problem by first setting the date to todays date + 1, then
setting the calendar to the current month and year. Still can't figure out
why it doesn't work without that.
 
Back
Top