Calendar control not updating

  • Thread starter Thread starter peter
  • Start date Start date
P

peter

I am using MSCAL.Calendar.7 on a form to set the value for
a despatch date in a job record.
I am using the AfterUpdate event to set the value. This
works well unless two jobs being added succesively have
the same despatch date. When the user clicks on the date
on the calendar nothing appears to happen. I presume this
is because the calendar control is not actually being
updated in this instance.
Is there a way around this?
 
Hi,
Simply ge rid of the selection after you've set the value.

Me.yourCalControl.Value = ""
 
Peter,
I set up a little expirement. I used the OnClick event for the calendar
to update a field on a form. I set the first record's date to 10/09/04,
went to the next record and clicked the same (already selected) date. It
also entered 10/09/04 in that field.
I also changed Year and Month, and that did not change the date value in
the field, so it appears as though slecting a month or year doesn't trip off
the calendar's ONClick event.
Expirement with the ONClick... it seems to avoid the problem you
described.
hth
Al Camp
 
Back
Top