Private Sub Datumtest_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
' Unhide the calendar and give it the focus
ocxCalendar.Visible = True
ocxCalendar.SetFocus
' Match calendar date to existing date if present or today's date
If Not IsNull(Datumtest) Then
ocxCalendar.Value = Datumtest.Value
Else
ocxCalendar.Value = Date
End If
End Sub