A
Arvi Laanemets
Hi
On unbound form, I have an unbound calendar control axDate (selected date is
passed to textbox txtDate in control's OnLostFocus event). In form's Open
event, I tried to initialize this calendar control:
Private Sub Form_Open(Cancel As Integer)
Me.axDate.Value = Date
...
End Sub
The code runs without any error, but the calendar control default value
remains unchanged (04.08.2005, as I created it yesterday). In Watch window I
can see, that Me.axDate.Value remains unchanged. I searched Web with Google,
but I did find only several advices to set control's value through code -
exactly what I did without any success!
Has someone some advice available? Thanks in advance!
On unbound form, I have an unbound calendar control axDate (selected date is
passed to textbox txtDate in control's OnLostFocus event). In form's Open
event, I tried to initialize this calendar control:
Private Sub Form_Open(Cancel As Integer)
Me.axDate.Value = Date
...
End Sub
The code runs without any error, but the calendar control default value
remains unchanged (04.08.2005, as I created it yesterday). In Watch window I
can see, that Me.axDate.Value remains unchanged. I searched Web with Google,
but I did find only several advices to set control's value through code -
exactly what I did without any success!
Has someone some advice available? Thanks in advance!