Pop-Up Calendar Control With No Default Date?

wilderfan

Registered User.
Local time
Today, 09:56
Joined
Mar 3, 2008
Messages
172
I'd like to place an unbound control on a form and use that control to input dates.

I have tried using Microsoft Date and Time Picker Control 6.0 (SP6) and it is working alright.

But I don't care for the fact that it displays a default date when the form opens.

I posted a question about DTPicker a couple years ago and at that time, there was no way to eliminate the default date showing up.

Does anyone have any suggestions re: how to eliminate the default date from this control?

Is there an alternative to DTPicker that will offer a pop-up calendar without displaying a default date?
 
Hello do not use the Microsoft Date and Time Picker Control 6.0 (SP6), see this example in attc:
 

Attachments

Use the Calendar ValueIsNull Property:

Code:
Private Sub calYourCalendarCtrl_Click()
txtYourTextBox.Value = Me.calYourCalendarCtrl.Value
End Sub

Private Sub Form_Load()
'Your Form Load event
calYourCalendarCtrl.ValueIsNull = True
End Sub/CODE]
 
In DTPicker ActiveX control does not work with data = null

this is initial doubt man
 
The Question was:
>>>I'd like to place an unbound control on a form and use that control to input dates.<<<

I have provided an alternative solution.
 

Users who are viewing this thread

Back
Top Bottom