Ok, how about I press Send a few more times before I'm ready??
(One of the keyboard keys is actually sticking here!)
Stephen's calendar has the advantage of being a completely API driven calendar so you don't have to
worry about versioning issues with Active X controls. Once you use it, you will be very pleased with
the results.
There are step-by-step instructions on how to use the calendar on his site.
I forgot one little step though.
Think of this as Step 9.5:
If you want to call the calendar, but not have the ability to select a range of dates insert one
line of code to limit the selection of dates to just one. Like so:
Private Sub txtSelectDate_DblClick(Cancel As Integer)
Dim blRet As Boolean
Dim dtStart As Date, dtEnd As Date
mc.MaxSelectRangeofDays = 1
dtStart = Nz(Me.txtSelectDate.Value, 0)
dtEnd = 0
blRet = ShowMonthCalendar(mc, dtStart, dtEnd)
If blRet = True Then
Me.txtSelectDate = dtStart
Else
' Add any message here if you want to
' inform the user that no date was selected
End If
End Sub
(Incidentally, I'm earning frequent flyer miles by mentioning his calendar. I'm saving up to visit
Fred in Canada. So far I've accumulated enough points for a seat on the wing of a crop duster from
here to Burns. Still have a ways to go.)