Article ID: 190194
Article Last Modified on 1/23/2007
Name: Calendar Visible: No
Private Sub OrderDate_MouseDown(Button As Integer, _
Shift As Integer, X As Single, _
Y As Single)
' Show Calendar and set its date.
Calendar.Visible = True
Calendar.SetFocus
' Set to today if OrderDate has no value.
Calendar.Value = IIf(IsNull(OrderDate), Date, OrderDate.Value)
End Sub
Private Sub Calendar_Click() ' Set OrderDate to the selected date and hide the calendar. OrderDate.Value = Calendar.Value OrderDate.SetFocus Calendar.Visible = False End Sub
CD-DRIVE:\MSDS\ODESMPL\ODE\OLECONT\Actctrls.mdbIf you don't have the ODE, you can download this database from Microsoft's Support Web site at the following address:
Keywords: kbdownload kbhowto kbprogramming KB190194