Calendar control not updating

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?
 
D

Dan Artuso

Hi,
Simply ge rid of the selection after you've set the value.

Me.yourCalControl.Value = ""
 
A

AlCamp

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
 

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