I am using a calendar control on a form to set a despatch
date. I am having difficulty setting the value of the
control when adding a new record. The control is linked to
a field called DesDate and this has no default value when
a new record is added. I am using a toggle button to set
the visible property to true so the user can use the
calendar. After a value has been set the control value is
synchronised but for some reason if the control value is
null no default date appears when the calendar is visible
but the year defaults to 2005. I have tried to set the
value in the forms load event but this does not seem to
work. I have tried using
me.caldesdate.value = date() and
me.caldesdate.value = today
Any ideas?
Alex Dybenko - 09 Sep 2004 08:41 GMT
If calender is bound to some field - probably it show a default of field?
check this
anyway - you can also assing default date in form's Before_Insert event

Signature
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com
>I am using a calendar control on a form to set a despatch
> date. I am having difficulty setting the value of the
[quoted text clipped - 12 lines]
>
> Any ideas?