Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    11

    Unanswered: Date/Time Control

    I am using an ActiveX control Microsoft Date/Time Picker 6.0. Is there a limit that I can set not allowing a selection beyond the current day?

  2. #2
    Join Date
    Jul 2004
    Posts
    8
    Here is the way I know how to do this. It requires you to build an event. The event you want to pick is "Change"

    Private Sub ActiveXCtl0_Change()

    If ActiveXCtl0.Value > Date Then ActiveXCtl0.Value = Date

    End Sub

    You will have to substitute ActiveXCtl0 with what ever you named your control.

    Hope this helps,
    Jack

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •