Here I come again with my silly questions.... I am now working on a calendar control and i am able to put in the control and also link it to a field, but i keep getting a error message in VB Script as "You can't assign a value to this object". The code that i have written is :
Expand|Select|Wrap|Line Numbers
- Private Sub DateCBox_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- ocxCalendar.Visible = True
- ocxCalendar.SetFocus
- If Not IsNull(DateCBox) Then
- ocxCalendar.Value = DateCBox.Value
- Else
- ocxCalendar.Value = Date
- End If
- End Sub