Calendar problem selecting last day of month

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!
 
J

Jim Burke in Novi

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top