M
maryj
I have a calendar control on a form. The field that is associated with this
control is not a required field and can be left blank. However, once the
combo box is selected and the calendar is displayed, I have not found a way
to cancel the calendar without it filling in a date. Here is the code that I
currently have:
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(cboStartDate) Then
ocxCalendar.Value = cboStartDate.Value
Else
ocxCalendar.Value = Date
End If
Is there something that can be added to allow no date to be selected?
Thanks!
control is not a required field and can be left blank. However, once the
combo box is selected and the calendar is displayed, I have not found a way
to cancel the calendar without it filling in a date. Here is the code that I
currently have:
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(cboStartDate) Then
ocxCalendar.Value = cboStartDate.Value
Else
ocxCalendar.Value = Date
End If
Is there something that can be added to allow no date to be selected?
Thanks!